00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00033 #ifndef OPUS_TYPES_H
00034 #define OPUS_TYPES_H
00035
00036
00037 #if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H))
00038 #include <stdint.h>
00039
00040 typedef int16_t opus_int16;
00041 typedef uint16_t opus_uint16;
00042 typedef int32_t opus_int32;
00043 typedef uint32_t opus_uint32;
00044 #elif defined(_WIN32)
00045
00046 # if defined(__CYGWIN__)
00047 # include <_G_config.h>
00048 typedef _G_int32_t opus_int32;
00049 typedef _G_uint32_t opus_uint32;
00050 typedef _G_int16 opus_int16;
00051 typedef _G_uint16 opus_uint16;
00052 # elif defined(__MINGW32__)
00053 typedef short opus_int16;
00054 typedef unsigned short opus_uint16;
00055 typedef int opus_int32;
00056 typedef unsigned int opus_uint32;
00057 # elif defined(__MWERKS__)
00058 typedef int opus_int32;
00059 typedef unsigned int opus_uint32;
00060 typedef short opus_int16;
00061 typedef unsigned short opus_uint16;
00062 # else
00063
00064 typedef __int32 opus_int32;
00065 typedef unsigned __int32 opus_uint32;
00066 typedef __int16 opus_int16;
00067 typedef unsigned __int16 opus_uint16;
00068 # endif
00069
00070 #elif defined(__MACOS__)
00071
00072 # include <sys/types.h>
00073 typedef SInt16 opus_int16;
00074 typedef UInt16 opus_uint16;
00075 typedef SInt32 opus_int32;
00076 typedef UInt32 opus_uint32;
00077
00078 #elif (defined(__APPLE__) && defined(__MACH__))
00079
00080 # include <sys/types.h>
00081 typedef int16_t opus_int16;
00082 typedef u_int16_t opus_uint16;
00083 typedef int32_t opus_int32;
00084 typedef u_int32_t opus_uint32;
00085
00086 #elif defined(__BEOS__)
00087
00088
00089 # include <inttypes.h>
00090 typedef int16 opus_int16;
00091 typedef u_int16 opus_uint16;
00092 typedef int32_t opus_int32;
00093 typedef u_int32_t opus_uint32;
00094
00095 #elif defined (__EMX__)
00096
00097
00098 typedef short opus_int16;
00099 typedef unsigned short opus_uint16;
00100 typedef int opus_int32;
00101 typedef unsigned int opus_uint32;
00102
00103 #elif defined (DJGPP)
00104
00105
00106 typedef short opus_int16;
00107 typedef unsigned short opus_uint16;
00108 typedef int opus_int32;
00109 typedef unsigned int opus_uint32;
00110
00111 #elif defined(R5900)
00112
00113
00114 typedef int opus_int32;
00115 typedef unsigned opus_uint32;
00116 typedef short opus_int16;
00117 typedef unsigned short opus_uint16;
00118
00119 #elif defined(__SYMBIAN32__)
00120
00121
00122 typedef signed short opus_int16;
00123 typedef unsigned short opus_uint16;
00124 typedef signed int opus_int32;
00125 typedef unsigned int opus_uint32;
00126
00127 #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
00128
00129 typedef short opus_int16;
00130 typedef unsigned short opus_uint16;
00131 typedef long opus_int32;
00132 typedef unsigned long opus_uint32;
00133
00134 #elif defined(CONFIG_TI_C6X)
00135
00136 typedef short opus_int16;
00137 typedef unsigned short opus_uint16;
00138 typedef int opus_int32;
00139 typedef unsigned int opus_uint32;
00140
00141 #else
00142
00143
00144 typedef short opus_int16;
00145 typedef unsigned short opus_uint16;
00146 typedef int opus_int32;
00147 typedef unsigned int opus_uint32;
00148
00149 #endif
00150
00151 #define opus_int int
00152 #define opus_int64 long long
00153 #define opus_int8 signed char
00154
00155 #define opus_uint unsigned int
00156 #define opus_uint64 unsigned long long
00157 #define opus_uint8 unsigned char
00158
00159 #endif