mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 05:25:02 +00:00
Fix AVX2 detection
This commit is contained in:
parent
db8b101617
commit
bec41ffe51
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ if(GLM_TEST_FORCE_PURE)
|
|||
message(STATUS "GLM: No SIMD instruction set")
|
||||
|
||||
elseif(GLM_TEST_ENABLE_SIMD_AVX2)
|
||||
add_definitions(-DGLM_FORCE_PURE)
|
||||
add_definitions(-DGLM_FORCE_INTRINSICS)
|
||||
|
||||
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
add_compile_options(-mavx2)
|
||||
|
|
|
@ -175,9 +175,9 @@ int test_instruction_set()
|
|||
std::printf("ARM ");
|
||||
if(GLM_ARCH & GLM_ARCH_NEON_BIT)
|
||||
std::printf("NEON ");
|
||||
if(GLM_ARCH & GLM_ARCH_AVX2)
|
||||
if(GLM_ARCH & GLM_ARCH_AVX2_BIT)
|
||||
std::printf("AVX2 ");
|
||||
if(GLM_ARCH & GLM_ARCH_AVX)
|
||||
if(GLM_ARCH & GLM_ARCH_AVX_BIT)
|
||||
std::printf("AVX ");
|
||||
if(GLM_ARCH & GLM_ARCH_SSE42_BIT)
|
||||
std::printf("SSE4.2 ");
|
||||
|
|
Loading…
Add table
Reference in a new issue