Intrinsics.h 561 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2015 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #ifdef _M_X86
  6. #ifdef _MSC_VER
  7. #include <intrin.h>
  8. #else
  9. #include <x86intrin.h>
  10. #endif
  11. #if defined _M_GENERIC
  12. # define _M_SSE 0
  13. #elif _MSC_VER || __INTEL_COMPILER
  14. # define _M_SSE 0x402
  15. #elif defined __GNUC__
  16. # if defined __SSE4_2__
  17. # define _M_SSE 0x402
  18. # elif defined __SSE4_1__
  19. # define _M_SSE 0x401
  20. # elif defined __SSSE3__
  21. # define _M_SSE 0x301
  22. # elif defined __SSE3__
  23. # define _M_SSE 0x300
  24. # endif
  25. #endif
  26. #endif // _M_X86