Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Fix missing SSE detection on x64 targets. Fixes #25 #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion include/mathfu/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@
#define MATHFU_COMPILE_WITH_SIMD
#elif defined(__ARM_NEON__)
#define MATHFU_COMPILE_WITH_SIMD
#elif defined(_M_IX86_FP) // MSVC
#elif defined(_M_IX86_FP) // MSVC targeting x86
#if _M_IX86_FP >= 1 // SSE enabled
#define MATHFU_COMPILE_WITH_SIMD
#endif // _M_IX86_FP >= 1
#elif (defined(_M_AMD64) || defined(_M_X64))
#define MATHFU_COMPILE_WITH_SIMD // MSVC targeting X64 implies SSE+SSE2
#endif
#endif // !defined(MATHFU_COMPILE_WITHOUT_SIMD_SUPPORT)

Expand Down