config.h 2.7 KB

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