config.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* Opus configuration header */
  2. /* Based on the output of libopus configure script */
  3. /* Define to 1 if you have the <dlfcn.h> header file. */
  4. #define HAVE_DLFCN_H 1
  5. /* Define to 1 if you have the <inttypes.h> header file. */
  6. #define HAVE_INTTYPES_H 1
  7. #if (!defined( _MSC_VER ) || ( _MSC_VER >= 1800 ))
  8. /* Define to 1 if you have the `lrint' function. */
  9. #define HAVE_LRINT 1
  10. /* Define to 1 if you have the `lrintf' function. */
  11. #define HAVE_LRINTF 1
  12. #endif
  13. /* Define to 1 if you have the <memory.h> header file. */
  14. #define HAVE_MEMORY_H 1
  15. /* Define to 1 if you have the <stdint.h> header file. */
  16. #define HAVE_STDINT_H 1
  17. /* Define to 1 if you have the <stdlib.h> header file. */
  18. #define HAVE_STDLIB_H 1
  19. /* Define to 1 if you have the <strings.h> header file. */
  20. #define HAVE_STRINGS_H 1
  21. /* Define to 1 if you have the <string.h> header file. */
  22. #define HAVE_STRING_H 1
  23. /* Define to 1 if you have the <sys/stat.h> header file. */
  24. #define HAVE_SYS_STAT_H 1
  25. /* Define to 1 if you have the <sys/types.h> header file. */
  26. #define HAVE_SYS_TYPES_H 1
  27. /* Define to 1 if you have the <unistd.h> header file. */
  28. #define HAVE_UNISTD_H 1
  29. /* Define to the sub-directory in which libtool stores uninstalled libraries.
  30. */
  31. #define LT_OBJDIR ".libs/"
  32. #ifdef OPUS_ARM_OPT
  33. /* Make use of ARM asm optimization */
  34. #define OPUS_ARM_ASM 1
  35. /* Use generic ARMv4 inline asm optimizations */
  36. #define OPUS_ARM_INLINE_ASM 1
  37. /* Use ARMv5E inline asm optimizations */
  38. #define OPUS_ARM_INLINE_EDSP 1
  39. /* Use ARMv6 inline asm optimizations */
  40. #define OPUS_ARM_INLINE_MEDIA 1
  41. /* Use ARM NEON inline asm optimizations */
  42. #define OPUS_ARM_INLINE_NEON 1
  43. /* Define if assembler supports EDSP instructions */
  44. #define OPUS_ARM_MAY_HAVE_EDSP 1
  45. /* Define if assembler supports ARMv6 media instructions */
  46. #define OPUS_ARM_MAY_HAVE_MEDIA 1
  47. /* Define if compiler supports NEON instructions */
  48. #define OPUS_ARM_MAY_HAVE_NEON 1
  49. #endif // OPUS_ARM_OPT
  50. #ifdef OPUS_ARM64_OPT
  51. /* Make use of ARM asm optimization */
  52. #define OPUS_ARM_ASM 1
  53. /* Use ARMv6 inline asm optimizations */
  54. #define OPUS_ARM_INLINE_MEDIA 1 // work
  55. /* Use ARM NEON inline asm optimizations */
  56. #define OPUS_ARM_INLINE_NEON 1 // work
  57. /* Define if assembler supports EDSP instructions */
  58. #define OPUS_ARM_MAY_HAVE_EDSP 1 // work
  59. /* Define if assembler supports ARMv6 media instructions */
  60. #define OPUS_ARM_MAY_HAVE_MEDIA 1 // work
  61. /* Define if compiler supports NEON instructions */
  62. #define OPUS_ARM_MAY_HAVE_NEON 1
  63. #endif // OPUS_ARM64_OPT
  64. /* This is a build of OPUS */
  65. #define OPUS_BUILD /**/
  66. #ifndef WIN32
  67. /* Use C99 variable-size arrays */
  68. #define VAR_ARRAYS 1
  69. #else
  70. /* Fixes VS 2013 compile error */
  71. #define USE_ALLOCA 1
  72. #endif
  73. #ifndef OPUS_FIXED_POINT
  74. #define FLOAT_APPROX 1
  75. #endif
  76. /* Define to `__inline__' or `__inline' if that's what the C compiler
  77. calls it, or to nothing if 'inline' is not supported under any name. */
  78. #ifndef __cplusplus
  79. /* #undef inline */
  80. #endif
  81. /* Define to the equivalent of the C99 'restrict' keyword, or to
  82. nothing if this is not supported. Do not define if restrict is
  83. supported directly. */
  84. #if (!defined( _MSC_VER ) || ( _MSC_VER >= 1800 ))
  85. #define restrict __restrict
  86. #else
  87. #undef restrict
  88. #endif
  89. /* Work around a bug in Sun C++: it does not support _Restrict or
  90. __restrict__, even though the corresponding Sun C compiler ends up with
  91. "#define restrict _Restrict" or "#define restrict __restrict__" in the
  92. previous line. Perhaps some future version of Sun C++ will work with
  93. restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
  94. #if defined __SUNPRO_CC && !defined __RESTRICT
  95. # define _Restrict
  96. # define __restrict__
  97. #endif