Go to the documentation of this file.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
00029
00030
00031
00032
00033
00038 #ifndef OPUS_TYPES_H
00039 #define OPUS_TYPES_H
00040
00041
00042 #if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H))
00043 #include <stdint.h>
00044
00045 typedef int16_t opus_int16;
00046 typedef uint16_t opus_uint16;
00047 typedef int32_t opus_int32;
00048 typedef uint32_t opus_uint32;
00049 #elif defined(_WIN32)
00050
00051 # if defined(__CYGWIN__)
00052 # include <_G_config.h>
00053 typedef _G_int32_t opus_int32;
00054 typedef _G_uint32_t opus_uint32;
00055 typedef _G_int16 opus_int16;
00056 typedef _G_uint16 opus_uint16;
00057 # elif defined(__MINGW32__)
00058 typedef short opus_int16;
00059 typedef unsigned short opus_uint16;
00060 typedef int opus_int32;
00061 typedef unsigned int opus_uint32;
00062 # elif defined(__MWERKS__)
00063 typedef int opus_int32;
00064 typedef unsigned int opus_uint32;
00065 typedef short opus_int16;
00066 typedef unsigned short opus_uint16;
00067 # else
00068
00069 typedef __int32 opus_int32;
00070 typedef unsigned __int32 opus_uint32;
00071 typedef __int16 opus_int16;
00072 typedef unsigned __int16 opus_uint16;
00073 # endif
00074
00075 #elif defined(__MACOS__)
00076
00077 # include <sys/types.h>
00078 typedef SInt16 opus_int16;
00079 typedef UInt16 opus_uint16;
00080 typedef SInt32 opus_int32;
00081 typedef UInt32 opus_uint32;
00082
00083 #elif (defined(__APPLE__) && defined(__MACH__))
00084
00085 # include <sys/types.h>
00086 typedef int16_t opus_int16;
00087 typedef u_int16_t opus_uint16;
00088 typedef int32_t opus_int32;
00089 typedef u_int32_t opus_uint32;
00090
00091 #elif defined(__BEOS__)
00092
00093
00094 # include <inttypes.h>
00095 typedef int16 opus_int16;
00096 typedef u_int16 opus_uint16;
00097 typedef int32_t opus_int32;
00098 typedef u_int32_t opus_uint32;
00099
00100 #elif defined (__EMX__)
00101
00102
00103 typedef short opus_int16;
00104 typedef unsigned short opus_uint16;
00105 typedef int opus_int32;
00106 typedef unsigned int opus_uint32;
00107
00108 #elif defined (DJGPP)
00109
00110
00111 typedef short opus_int16;
00112 typedef unsigned short opus_uint16;
00113 typedef int opus_int32;
00114 typedef unsigned int opus_uint32;
00115
00116 #elif defined(R5900)
00117
00118
00119 typedef int opus_int32;
00120 typedef unsigned opus_uint32;
00121 typedef short opus_int16;
00122 typedef unsigned short opus_uint16;
00123
00124 #elif defined(__SYMBIAN32__)
00125
00126
00127 typedef signed short opus_int16;
00128 typedef unsigned short opus_uint16;
00129 typedef signed int opus_int32;
00130 typedef unsigned int opus_uint32;
00131
00132 #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
00133
00134 typedef short opus_int16;
00135 typedef unsigned short opus_uint16;
00136 typedef long opus_int32;
00137 typedef unsigned long opus_uint32;
00138
00139 #elif defined(CONFIG_TI_C6X)
00140
00141 typedef short opus_int16;
00142 typedef unsigned short opus_uint16;
00143 typedef int opus_int32;
00144 typedef unsigned int opus_uint32;
00145
00146 #else
00147
00148
00149 typedef short opus_int16;
00150 typedef unsigned short opus_uint16;
00151 typedef int opus_int32;
00152 typedef unsigned int opus_uint32;
00153
00154 #endif
00155
00156 #define opus_int int
00157 #define opus_int64 long long
00158 #define opus_int8 signed char
00159
00160 #define opus_uint unsigned int
00161 #define opus_uint64 unsigned long long
00162 #define opus_uint8 unsigned char
00163
00164 #endif