Skip to content

Commit aa35557

Browse files
committed
.
1 parent b94fba6 commit aa35557

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

CMakeLists.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
1414
option(NCHECK "Dinsable for checking for more fast decoding" OFF)
1515
# default=partial checking, detect allmost all errors
1616
option(FULLCHECK "Enable full base64 checking" OFF)
17-
option(USE_AVX512 "Enable AVX512" OFF)
17+
option(NAVX512 "Disable AVX512" OFF)
1818
option(BUILD_APP "Build executables" OFF)
1919

2020
message(STATUS "Configuring with CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}")
@@ -36,8 +36,8 @@ endif()
3636
if(FULLCHECK)
3737
add_compile_definitions(DB64CHECK)
3838
endif()
39-
if(USE_AVX512)
40-
add_compile_definitions(USE_AVX512)
39+
if(NAVX512)
40+
add_compile_definitions(NAVX512)
4141
endif()
4242

4343
if(ARCH_PPC64LE)
@@ -71,6 +71,10 @@ if(ARCH_AMD64)
7171
add_library(_b64_v256 OBJECT turbob64v256.c)
7272
target_compile_options(_b64_v256 PRIVATE -march=haswell -fstrict-aliasing -falign-loops)
7373
list(APPEND _b64_objs _b64_v256)
74+
75+
add_library(_b64_v512 OBJECT turbob64v512.c)
76+
target_compile_options(_b64_v512 PRIVATE -march=skylake-avx512 -mavx512vbmi -fstrict-aliasing -falign-loops)
77+
list(APPEND _b64_objs _b64_v512)
7478
endif()
7579

7680
if(BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)