use haswell as default arch

This commit is contained in:
Henry Case 2021-04-18 23:57:41 +01:00
parent 6b9aa0e10b
commit 4dcce2cc7e

View File

@ -156,7 +156,7 @@ add_subdirectory(src/kem/sike)
if(${ARCH} STREQUAL "ARCH_x86_64") if(${ARCH} STREQUAL "ARCH_x86_64")
set(CMAKE_C_FLAGS set(CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -march=native -mtune=native") "${CMAKE_C_FLAGS} -march=haswell")
set(SRC_COMMON_AVX2 set(SRC_COMMON_AVX2
src/common/keccak4x/KeccakP-1600-times4-SIMD256.c src/common/keccak4x/KeccakP-1600-times4-SIMD256.c
) )