configMS.h 2.7 KB

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