New makefile solution: A single invocation of 'make' to build the entire tree. Fully...
[kugel-rb.git] / apps / codecs / libtremor / os_types.h
blob5738ef4911e10aed8539dac43becf689c2f4717b
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 ********************************************************************
14 function: #ifdef jail to whip a few platforms into the UNIX ideal.
16 ********************************************************************/
17 #include "config-tremor.h"
19 #ifndef _OS_TYPES_H
20 #define _OS_TYPES_H
22 #include <stdlib.h>
23 #include <codecs.h>
25 #ifdef _LOW_ACCURACY_
26 # define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
27 # define LOOKUP_T const unsigned char
28 #else
29 # define X(n) (n)
30 # define LOOKUP_T const ogg_int32_t
31 #endif
33 /* make it easy on the folks that want to compile the libs with a
34 different malloc than stdlib */
36 #define _ogg_malloc ogg_malloc
37 #define _ogg_calloc ogg_calloc
38 #define _ogg_realloc ogg_realloc
39 #define _ogg_free(x) do { } while(0)
41 void ogg_malloc_init(void);
42 void *ogg_malloc(size_t size);
43 void *ogg_tmpmalloc(size_t size);
44 void *ogg_calloc(size_t nmemb, size_t size);
45 void *ogg_tmpcalloc(size_t nmemb, size_t size);
46 void *ogg_realloc(void *ptr, size_t size);
47 long ogg_tmpmalloc_pos(void);
48 void ogg_tmpmalloc_free(long pos);
50 typedef short ogg_int16_t;
51 typedef int ogg_int32_t;
52 typedef unsigned int ogg_uint32_t;
53 typedef long long ogg_int64_t;
55 #endif /* _OS_TYPES_H */