- Fixed Visual C++ SIMD instruction set automatic detection in 64 bits

This commit is contained in:
Christophe Riccio
2016-04-30 16:23:55 +02:00
parent 9770c9f73d
commit e9bb34fb78
2 changed files with 9 additions and 1 deletions

View File

@@ -423,8 +423,14 @@
# define GLM_ARCH (GLM_ARCH_AVX2 | GLM_ARCH_AVX | GLM_ARCH_SSE4 | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
# elif defined(__AVX__)
# define GLM_ARCH (GLM_ARCH_AVX | GLM_ARCH_SSE4 | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
# elif _M_IX86_FP == 2
# elif defined(_M_X64)
# define GLM_ARCH (GLM_ARCH_SSE2)
# elif defined(_M_IX86_FP)
# if _M_IX86_FP >= 2
# define GLM_ARCH (GLM_ARCH_SSE2)
# else
# define GLM_ARCH (GLM_ARCH_PURE)
# endif
# else
# define GLM_ARCH (GLM_ARCH_PURE)
# endif