diff options
Diffstat (limited to 'lib/rbcodec/codecs/libtremor/os_types.h')
-rw-r--r-- | lib/rbcodec/codecs/libtremor/os_types.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libtremor/os_types.h b/lib/rbcodec/codecs/libtremor/os_types.h new file mode 100644 index 0000000000..b5bd0b713a --- /dev/null +++ b/lib/rbcodec/codecs/libtremor/os_types.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /******************************************************************** | ||
2 | * * | ||
3 | * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * | ||
4 | * * | ||
5 | * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * | ||
6 | * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * | ||
7 | * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * | ||
8 | * * | ||
9 | * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 * | ||
10 | * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ * | ||
11 | * * | ||
12 | ******************************************************************** | ||
13 | |||
14 | function: #ifdef jail to whip a few platforms into the UNIX ideal. | ||
15 | |||
16 | ********************************************************************/ | ||
17 | #include "config-tremor.h" | ||
18 | |||
19 | #ifndef _OS_TYPES_H | ||
20 | #define _OS_TYPES_H | ||
21 | |||
22 | #include <stdint.h> | ||
23 | #include <stdlib.h> | ||
24 | #include <codecs.h> | ||
25 | |||
26 | #ifdef _LOW_ACCURACY_ | ||
27 | # define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9)) | ||
28 | # define LOOKUP_T const unsigned char | ||
29 | # define LOOKUP_TNC unsigned char | ||
30 | #else | ||
31 | # define X(n) (n) | ||
32 | # define LOOKUP_T const ogg_int32_t | ||
33 | # define LOOKUP_TNC ogg_int32_t | ||
34 | #endif | ||
35 | |||
36 | /* make it easy on the folks that want to compile the libs with a | ||
37 | different malloc than stdlib */ | ||
38 | |||
39 | #define _ogg_malloc ogg_malloc | ||
40 | #define _ogg_calloc ogg_calloc | ||
41 | #define _ogg_realloc ogg_realloc | ||
42 | #define _ogg_free ogg_free | ||
43 | |||
44 | void ogg_malloc_init(void); | ||
45 | void ogg_malloc_destroy(void); | ||
46 | void *ogg_malloc(size_t size); | ||
47 | void *ogg_calloc(size_t nmemb, size_t size); | ||
48 | void *ogg_realloc(void *ptr, size_t size); | ||
49 | void ogg_free(void *ptr); | ||
50 | void iram_malloc_init(void); | ||
51 | void *iram_malloc(size_t size); | ||
52 | |||
53 | typedef int16_t ogg_int16_t; | ||
54 | typedef int32_t ogg_int32_t; | ||
55 | typedef uint32_t ogg_uint32_t; | ||
56 | typedef int64_t ogg_int64_t; | ||
57 | |||
58 | #endif /* _OS_TYPES_H */ | ||