| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | #ifndef _LIBUTIL_PRIM_TYPE_H_ |
| | #define _LIBUTIL_PRIM_TYPE_H_ |
| |
|
| | |
| | |
| | |
| | |
| | |
| | #ifdef __cplusplus |
| | extern "C" { |
| | #endif |
| | #if 0 |
| | } |
| | #endif |
| |
|
| | #include <pocketsphinx/sphinx_config.h> |
| |
|
| | |
| | #if defined(__ADSPBLACKFIN__) && !defined(__GNUC__) |
| | # ifndef HAVE_LONG_LONG |
| | # define HAVE_LONG_LONG |
| | # endif |
| | # ifndef ssize_t |
| | typedef signed int ssize_t; |
| | # endif |
| | # define SIZEOF_LONG_LONG 8 |
| | # define __BIGSTACKVARIABLE__ static |
| | #else |
| | # define __BIGSTACKVARIABLE__ |
| | #endif |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | typedef union anytype_s { |
| | void *ptr; |
| | long i; |
| | unsigned long ui; |
| | double fl; |
| | } anytype_t; |
| |
|
| | |
| | #if defined(HAVE_STDINT_H) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) |
| | #include <stdint.h> |
| | typedef int32_t int32; |
| | typedef int16_t int16; |
| | typedef int8_t int8; |
| | typedef uint32_t uint32; |
| | typedef uint16_t uint16; |
| | typedef uint8_t uint8; |
| | typedef int64_t int64; |
| | typedef uint64_t uint64; |
| | |
| | #else |
| | typedef int int32; |
| | typedef short int16; |
| | typedef signed char int8; |
| | typedef unsigned int uint32; |
| | typedef unsigned short uint16; |
| | typedef unsigned char uint8; |
| | # if defined(_MSC_VER) |
| | typedef __int64 int64; |
| | typedef unsigned __int64 uint64; |
| | # else |
| | typedef long long int64; |
| | typedef unsigned long long uint64; |
| | # endif |
| | #endif |
| |
|
| | |
| | |
| | |
| | typedef float float32; |
| | typedef double float64; |
| |
|
| | #ifndef TRUE |
| | #define TRUE 1 |
| | #endif |
| | #ifndef FALSE |
| | #define FALSE 0 |
| | #endif |
| |
|
| | #ifndef NULL |
| | #define NULL (void *)0 |
| | #endif |
| |
|
| | |
| | |
| | #define MAX_INT32 ((int32) 0x7fffffff) |
| | #define MAX_INT16 ((int16) 0x00007fff) |
| | #define MAX_INT8 ((int8) 0x0000007f) |
| |
|
| | #define MAX_NEG_INT32 ((int32) 0x80000000) |
| | #define MAX_NEG_INT16 ((int16) 0xffff8000) |
| | #define MAX_NEG_INT8 ((int8) 0xffffff80) |
| |
|
| | #define MAX_UINT32 ((uint32) 0xffffffff) |
| | #define MAX_UINT16 ((uint16) 0x0000ffff) |
| | #define MAX_UINT8 ((uint8) 0x000000ff) |
| |
|
| | |
| | #define MAX_POS_FLOAT32 3.4e+38f |
| | #define MIN_POS_FLOAT32 1.2e-38f |
| | #define MAX_POS_FLOAT64 1.8e+307 |
| | #define MIN_POS_FLOAT64 2.2e-308 |
| |
|
| | #define MAX_IEEE_NORM_POS_FLOAT32 3.4e+38f |
| | #define MIN_IEEE_NORM_POS_FLOAT32 1.2e-38f |
| | #define MIN_IEEE_NORM_NEG_FLOAT32 -3.4e+38f |
| | #define MAX_IEEE_NORM_POS_FLOAT64 1.8e+307 |
| | #define MIN_IEEE_NORM_POS_FLOAT64 2.2e-308 |
| | #define MIN_IEEE_NORM_NEG_FLOAT64 -1.8e+307 |
| |
|
| | |
| | #define MIN_NEG_FLOAT32 ((float32) (-MIN_POS_FLOAT32)) |
| | #define MIN_NEG_FLOAT64 ((float64) (-MIN_POS_FLOAT64)) |
| |
|
| |
|
| | #ifdef __cplusplus |
| | } |
| | #endif |
| |
|
| | #endif |
| |
|