File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
14
14
option (NCHECK "Dinsable for checking for more fast decoding" OFF )
15
15
# default=partial checking, detect allmost all errors
16
16
option (FULLCHECK "Enable full base64 checking" OFF )
17
- option (USE_AVX512 "Enable AVX512" OFF )
17
+ option (NAVX512 "Disable AVX512" OFF )
18
18
option (BUILD_APP "Build executables" OFF )
19
19
20
20
message (STATUS "Configuring with CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR} " )
@@ -36,8 +36,8 @@ endif()
36
36
if (FULLCHECK)
37
37
add_compile_definitions (DB64CHECK)
38
38
endif ()
39
- if (USE_AVX512 )
40
- add_compile_definitions (USE_AVX512 )
39
+ if (NAVX512 )
40
+ add_compile_definitions (NAVX512 )
41
41
endif ()
42
42
43
43
if (ARCH_PPC64LE)
@@ -71,6 +71,10 @@ if(ARCH_AMD64)
71
71
add_library (_b64_v256 OBJECT turbob64v256.c)
72
72
target_compile_options (_b64_v256 PRIVATE -march=haswell -fstrict-aliasing -falign-loops)
73
73
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)
74
78
endif ()
75
79
76
80
if (BUILD_SHARED_LIBS )
You can’t perform that action at this time.
0 commit comments