1 /********************************************************************
3 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
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. *
9 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
10 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
12 ********************************************************************
14 function: #ifdef jail to whip a few platforms into the UNIX ideal.
16 ********************************************************************/
17 #include "config-tremor.h"
26 # define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
27 # define LOOKUP_T const unsigned char
28 # define LOOKUP_TNC unsigned char
31 # define LOOKUP_T const ogg_int32_t
32 # define LOOKUP_TNC ogg_int32_t
35 /* make it easy on the folks that want to compile the libs with a
36 different malloc than stdlib */
38 #define _ogg_malloc ogg_malloc
39 #define _ogg_calloc ogg_calloc
40 #define _ogg_realloc ogg_realloc
41 #define _ogg_free ogg_free
43 void ogg_malloc_init(void);
44 void ogg_malloc_destroy(void);
45 void *ogg_malloc(size_t size
);
46 void *ogg_calloc(size_t nmemb
, size_t size
);
47 void *ogg_realloc(void *ptr
, size_t size
);
48 void ogg_free(void *ptr
);
49 void iram_malloc_init(void);
50 void *iram_malloc(size_t size
);
52 typedef short ogg_int16_t
;
53 typedef int ogg_int32_t
;
54 typedef unsigned int ogg_uint32_t
;
55 typedef long long ogg_int64_t
;
57 #endif /* _OS_TYPES_H */