mirror of
https://github.com/g-truc/glm.git
synced 2024-11-12 21:31:47 +00:00
Added instruction set auto detection with Visual C++ using _M_IX86_FP - /arch compiler argument
This commit is contained in:
parent
9eedee586d
commit
e606edf43b
@ -566,33 +566,11 @@
|
|||||||
# define GLM_ARCH (GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
# define GLM_ARCH (GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
||||||
#elif(defined(GLM_FORCE_SSE2))
|
#elif(defined(GLM_FORCE_SSE2))
|
||||||
# define GLM_ARCH (GLM_ARCH_SSE2)
|
# define GLM_ARCH (GLM_ARCH_SSE2)
|
||||||
#elif((GLM_COMPILER & GLM_COMPILER_VC) && (defined(_M_IX86) || defined(_M_X64)))
|
#elif(GLM_COMPILER & GLM_COMPILER_VC)
|
||||||
# if(GLM_PLATFORM == GLM_PLATFORM_WINCE)
|
# if _M_IX86_FP == 2 && defined(__AVX__)
|
||||||
# define GLM_ARCH GLM_ARCH_PURE
|
|
||||||
# elif(defined(_M_CEE_PURE))
|
|
||||||
# define GLM_ARCH GLM_ARCH_PURE
|
|
||||||
/* TODO: Explore auto detection of instruction set support
|
|
||||||
# elif(defined(_M_IX86_FP))
|
|
||||||
# if(_M_IX86_FP >= 3)
|
|
||||||
# define GLM_ARCH (GLM_ARCH_AVX | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
|
||||||
# elif(_M_IX86_FP >= 2)
|
|
||||||
# define GLM_ARCH (GLM_ARCH_SSE2)
|
|
||||||
# else
|
|
||||||
# define GLM_ARCH GLM_ARCH_PURE
|
|
||||||
# endif
|
|
||||||
*/
|
|
||||||
# elif(GLM_COMPILER >= GLM_COMPILER_VC11)
|
|
||||||
# define GLM_ARCH (GLM_ARCH_AVX | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
# define GLM_ARCH (GLM_ARCH_AVX | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
||||||
# elif(GLM_COMPILER >= GLM_COMPILER_VC10)
|
# elif _M_IX86_FP == 2
|
||||||
# if(_MSC_FULL_VER >= 160031118) //160031118: VC2010 SP1 beta full version
|
# define GLM_ARCH (GLM_ARCH_SSE2)
|
||||||
# define GLM_ARCH (GLM_ARCH_AVX | GLM_ARCH_SSE3 | GLM_ARCH_SSE2)//GLM_ARCH_AVX (Require SP1)
|
|
||||||
# else
|
|
||||||
# define GLM_ARCH (GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
|
||||||
# endif
|
|
||||||
# elif(GLM_COMPILER >= GLM_COMPILER_VC9)
|
|
||||||
# define GLM_ARCH (GLM_ARCH_SSE3 | GLM_ARCH_SSE2)
|
|
||||||
# elif(GLM_COMPILER >= GLM_COMPILER_VC8)
|
|
||||||
# define GLM_ARCH GLM_ARCH_SSE2
|
|
||||||
# else
|
# else
|
||||||
# define GLM_ARCH GLM_ARCH_PURE
|
# define GLM_ARCH GLM_ARCH_PURE
|
||||||
# endif
|
# endif
|
||||||
|
@ -36,6 +36,12 @@ GLM is a header only library, there is nothing to build, just include it.
|
|||||||
More informations in GLM manual:
|
More informations in GLM manual:
|
||||||
http://glm.g-truc.net/glm.pdf
|
http://glm.g-truc.net/glm.pdf
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
GLM 0.9.5.3: 2014-0X-XX
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
- Added instruction set auto detection with Visual C++ using _M_IX86_FP - /arch
|
||||||
|
compiler argument.
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.5.2: 2014-02-08
|
GLM 0.9.5.2: 2014-02-08
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user