config.h 813 B

12345678910111213141516171819202122232425262728293031
  1. // Microsoft version of 'inline'
  2. #define inline __inline
  3. // In Visual Studio, _M_IX86_FP=1 means /arch:SSE was used, likewise
  4. // _M_IX86_FP=2 means /arch:SSE2 was used.
  5. // Also, enable both _USE_SSE and _USE_SSE2 if we're compiling for x86-64
  6. #if _M_IX86_FP >= 1 || defined(_M_X64)
  7. #define _USE_SSE
  8. #endif
  9. #if _M_IX86_FP >= 2 || defined(_M_X64)
  10. #define _USE_SSE2
  11. #endif
  12. // Visual Studio support alloca(), but it always align variables to 16-bit
  13. // boundary, while SSE need 128-bit alignment. So we disable alloca() when
  14. // SSE is enabled.
  15. #ifndef _USE_SSE
  16. # define USE_ALLOCA
  17. #endif
  18. /* Default to floating point */
  19. #ifndef FIXED_POINT
  20. # define FLOATING_POINT
  21. # define USE_SMALLFT
  22. #else
  23. # define USE_KISS_FFT
  24. #endif
  25. /* We don't support visibility on Win32 */
  26. #define EXPORT