1 #ifndef CONFIGMS_H_INCLUDED 2 #define CONFIGMS_H_INCLUDED 3 4 /* The number of bytes in a double. */ 5 #define SIZEOF_DOUBLE 8 6 7 /* The number of bytes in a float. */ 8 #define SIZEOF_FLOAT 4 9 10 /* The number of bytes in a int. */ 11 #define SIZEOF_INT 4 12 13 /* The number of bytes in a long. */ 14 #define SIZEOF_LONG 4 15 16 /* The number of bytes in a long double. */ 17 #define SIZEOF_LONG_DOUBLE 12 18 19 /* The number of bytes in a short. */ 20 #define SIZEOF_SHORT 2 21 22 /* The number of bytes in a unsigned int. */ 23 #define SIZEOF_UNSIGNED_INT 4 24 25 /* The number of bytes in a unsigned long. */ 26 #define SIZEOF_UNSIGNED_LONG 4 27 28 /* The number of bytes in a unsigned short. */ 29 #define SIZEOF_UNSIGNED_SHORT 2 30 31 /* Define if you have the ANSI C header files. */ 32 #define STDC_HEADERS 33 34 /* Define if you have the <errno.h> header file. */ 35 #define HAVE_ERRNO_H 36 37 /* Define if you have the <fcntl.h> header file. */ 38 #define HAVE_FCNTL_H 39 40 /* Define if you have the <limits.h> header file. */ 41 #define HAVE_LIMITS_H 42 43 /* Name of package */ 44 #define PACKAGE "lame" 45 46 /* Define if compiler has function prototypes */ 47 #define PROTOTYPES 1 48 49 /* faster log implementation with less but enough precission */ 50 #define USE_FAST_LOG 1 51 52 #define HAVE_STRCHR 53 #define HAVE_MEMCPY 54 55 #if defined(_MSC_VER) || defined(__BORLANDC__) 56 #pragma warning( disable : 4305 ) 57 typedef __int8 int8_t; 58 typedef __int16 int16_t; 59 typedef __int32 int32_t; 60 typedef __int64 int64_t; 61 62 typedef unsigned __int8 uint8_t; 63 typedef unsigned __int16 uint16_t; 64 typedef unsigned __int32 uint32_t; 65 typedef unsigned __int64 uint64_t; 66 67 typedef float float32_t; 68 typedef double float64_t; 69 #elif defined (__GNUC__) 70 #define __int8_t_defined 71 #define uint8_t unsigned char 72 #define uint16_t unsigned short 73 #define uint32_t unsigned int 74 #define uint64_t unsigned long long 75 76 #define int8_t signed char 77 #define int16_t signed short 78 #define int32_t signed int 79 #define int64_t signed long long 80 #endif 81 82 typedef long double ieee854_float80_t; 83 typedef double ieee754_float64_t; 84 typedef float ieee754_float32_t; 85 86 #ifdef HAVE_MPGLIB 87 # define DECODE_ON_THE_FLY 1 88 #endif 89 90 #ifdef LAME_ACM 91 /* memory hacking for driver purposes */ 92 #define calloc(x,y) acm_Calloc(x,y) 93 #define free(x) acm_Free(x) 94 #define malloc(x) acm_Malloc(x) 95 96 #include <stddef.h> 97 void *acm_Calloc( size_t num, size_t size ); 98 void *acm_Malloc( size_t size ); 99 void acm_Free( void * mem); 100 #endif /* LAME_ACM */ 101 102 #define LAME_LIBRARY_BUILD 103 104 105 #ifdef HAVE_NASM 106 #if (defined(__ICL) && (__ICL >= 450)) 107 #define HAVE_XMMINTRIN_H 108 #elif defined(_MSC_VER) 109 #include <malloc.h> 110 #ifdef _mm_malloc 111 #define HAVE_XMMINTRIN_H 112 #endif 113 #endif 114 #endif 115 116 #if defined(_M_X64) && !defined(HAVE_XMMINTRIN_H) 117 #define HAVE_XMMINTRIN_H 118 #endif 119 120 #endif 121