1
0

sse-intrin.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /******************************************************************************
  2. Copyright (C) 2019 by Peter Geis <[email protected]>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ******************************************************************************/
  14. #pragma once
  15. #include "c99defs.h"
  16. #if (defined(_MSC_VER) || defined(__MINGW32__)) && ((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
  17. #include <emmintrin.h>
  18. #else
  19. #ifndef WIN32_LEAN_AND_MEAN
  20. #define WIN32_LEAN_AND_MEAN
  21. #endif
  22. #if defined(_MSC_VER) && defined(__cplusplus)
  23. #include <cmath>
  24. #endif
  25. #if defined(__APPLE__)
  26. #include <simd/base.h>
  27. #endif
  28. #define SIMDE_ENABLE_NATIVE_ALIASES
  29. PRAGMA_WARN_PUSH
  30. #include <simde/x86/sse2.h>
  31. PRAGMA_WARN_POP
  32. #endif