| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
| #ifndef OPUS_TYPES_H |
| #define OPUS_TYPES_H |
|
|
| |
| #if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) |
| #include <stdint.h> |
|
|
| typedef int16_t opus_int16; |
| typedef uint16_t opus_uint16; |
| typedef int32_t opus_int32; |
| typedef uint32_t opus_uint32; |
| #elif defined(_WIN32) |
|
|
| # if defined(__CYGWIN__) |
| # include <_G_config.h> |
| typedef _G_int32_t opus_int32; |
| typedef _G_uint32_t opus_uint32; |
| typedef _G_int16 opus_int16; |
| typedef _G_uint16 opus_uint16; |
| # elif defined(__MINGW32__) |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
| # elif defined(__MWERKS__) |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| # else |
| |
| typedef __int32 opus_int32; |
| typedef unsigned __int32 opus_uint32; |
| typedef __int16 opus_int16; |
| typedef unsigned __int16 opus_uint16; |
| # endif |
|
|
| #elif defined(__MACOS__) |
|
|
| # include <sys/types.h> |
| typedef SInt16 opus_int16; |
| typedef UInt16 opus_uint16; |
| typedef SInt32 opus_int32; |
| typedef UInt32 opus_uint32; |
|
|
| #elif (defined(__APPLE__) && defined(__MACH__)) |
|
|
| # include <sys/types.h> |
| typedef int16_t opus_int16; |
| typedef u_int16_t opus_uint16; |
| typedef int32_t opus_int32; |
| typedef u_int32_t opus_uint32; |
|
|
| #elif defined(__BEOS__) |
|
|
| |
| # include <inttypes.h> |
| typedef int16 opus_int16; |
| typedef u_int16 opus_uint16; |
| typedef int32_t opus_int32; |
| typedef u_int32_t opus_uint32; |
|
|
| #elif defined (__EMX__) |
|
|
| |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
|
|
| #elif defined (DJGPP) |
|
|
| |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
|
|
| #elif defined(R5900) |
|
|
| |
| typedef int opus_int32; |
| typedef unsigned opus_uint32; |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
|
|
| #elif defined(__SYMBIAN32__) |
|
|
| |
| typedef signed short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef signed int opus_int32; |
| typedef unsigned int opus_uint32; |
|
|
| #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X) |
|
|
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef long opus_int32; |
| typedef unsigned long opus_uint32; |
|
|
| #elif defined(CONFIG_TI_C6X) |
|
|
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
|
|
| #else |
|
|
| |
| typedef short opus_int16; |
| typedef unsigned short opus_uint16; |
| typedef int opus_int32; |
| typedef unsigned int opus_uint32; |
|
|
| #endif |
|
|
| #define opus_int int |
| #define opus_int64 long long |
| #define opus_int8 signed char |
|
|
| #define opus_uint unsigned int |
| #define opus_uint64 unsigned long long |
| #define opus_uint8 unsigned char |
|
|
| #endif |
|
|