summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/os_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/Tremor/os_types.h')
-rw-r--r--apps/codecs/Tremor/os_types.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/codecs/Tremor/os_types.h b/apps/codecs/Tremor/os_types.h
index 1e0cb1332f..5738ef4911 100644
--- a/apps/codecs/Tremor/os_types.h
+++ b/apps/codecs/Tremor/os_types.h
@@ -19,6 +19,9 @@
19#ifndef _OS_TYPES_H 19#ifndef _OS_TYPES_H
20#define _OS_TYPES_H 20#define _OS_TYPES_H
21 21
22#include <stdlib.h>
23#include <codecs.h>
24
22#ifdef _LOW_ACCURACY_ 25#ifdef _LOW_ACCURACY_
23# define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9)) 26# define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
24# define LOOKUP_T const unsigned char 27# define LOOKUP_T const unsigned char
@@ -29,10 +32,20 @@
29 32
30/* make it easy on the folks that want to compile the libs with a 33/* make it easy on the folks that want to compile the libs with a
31 different malloc than stdlib */ 34 different malloc than stdlib */
32#define _ogg_malloc malloc 35
33#define _ogg_calloc calloc 36#define _ogg_malloc ogg_malloc
34#define _ogg_realloc realloc 37#define _ogg_calloc ogg_calloc
35#define _ogg_free free 38#define _ogg_realloc ogg_realloc
39#define _ogg_free(x) do { } while(0)
40
41void ogg_malloc_init(void);
42void *ogg_malloc(size_t size);
43void *ogg_tmpmalloc(size_t size);
44void *ogg_calloc(size_t nmemb, size_t size);
45void *ogg_tmpcalloc(size_t nmemb, size_t size);
46void *ogg_realloc(void *ptr, size_t size);
47long ogg_tmpmalloc_pos(void);
48void ogg_tmpmalloc_free(long pos);
36 49
37 typedef short ogg_int16_t; 50 typedef short ogg_int16_t;
38 typedef int ogg_int32_t; 51 typedef int ogg_int32_t;