# might not work in this case (especially when targeting Windows).
include(CheckYasm)
check_yasm_support(${object_format}
- HAVE_GOOD_YASM_ELF64
- HAVE_BETTER_YASM_ELF64)
+ HAVE_YASM_X64
+ HAVE_YASM_X64_AVX2)
endif()
endif()
if(HAVE_INTEL)
list(APPEND crc32_srcs
crc32c_intel_fast.c)
- if(HAVE_GOOD_YASM_ELF64)
+ if(HAVE_YASM_X64)
list(APPEND crc32_srcs
crc32c_intel_fast_asm.s
crc32c_intel_fast_zero_asm.s)
- endif(HAVE_GOOD_YASM_ELF64)
+ endif(HAVE_YASM_X64)
elseif(HAVE_POWER8)
list(APPEND crc32_srcs
crc32c_ppc.c)
extern unsigned int crc32_iscsi_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_00");
extern unsigned int crc32_iscsi_zero_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_zero_00");
-#ifdef HAVE_GOOD_YASM_ELF64
+#ifdef HAVE_YASM_X64
uint32_t ceph_crc32c_intel_fast(uint32_t crc, unsigned char const *buffer, unsigned len)
{
Option("osd_erasure_code_plugins", Option::TYPE_STR, Option::LEVEL_ADVANCED)
.set_default("jerasure lrc"
- #if defined(HAVE_BETTER_YASM_ELF64) || defined(HAVE_ARMV8_SIMD)
+ #if defined(HAVE_YASM_X64_AVX2) || defined(HAVE_ARMV8_SIMD)
" isa"
#endif
)
# zlib
-if(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
+if(HAVE_INTEL_SSE4_1 AND HAVE_YASM_X64_AVX2 AND (NOT APPLE))
set(zlib_sources
CompressionPluginZlib.cc
ZlibCompressor.cc
${CMAKE_SOURCE_DIR}/src/isa-l/igzip/igzip_set_long_icf_fg_04.asm
${CMAKE_SOURCE_DIR}/src/isa-l/igzip/igzip_set_long_icf_fg_06.asm
)
-else(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
+else(HAVE_INTEL_SSE4_1 AND HAVE_YASM_X64_AVX2 AND (NOT APPLE))
set(zlib_sources
CompressionPluginZlib.cc
ZlibCompressor.cc
)
-endif(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
+endif(HAVE_INTEL_SSE4_1 AND HAVE_YASM_X64_AVX2 AND (NOT APPLE))
add_library(ceph_zlib SHARED ${zlib_sources})
target_link_libraries(ceph_zlib ZLIB::ZLIB compressor $<$<PLATFORM_ID:Windows>:ceph-common>)
return 0;
}
-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64)
+#if __x86_64__ && defined(HAVE_YASM_X64_AVX2)
int ZlibCompressor::isal_compress(const bufferlist &in, bufferlist &out, boost::optional<int32_t> &compressor_message)
{
int ret;
if (qat_enabled)
return qat_accel.compress(in, out, compressor_message);
#endif
-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64)
+#if __x86_64__ && defined(HAVE_YASM_X64_AVX2)
if (isal_enabled)
return isal_compress(in, out, compressor_message);
else
add_subdirectory(openssl)
-if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
+if(HAVE_INTEL AND HAVE_YASM_X64_AVX2 AND (NOT APPLE))
add_subdirectory(isa-l)
endif()
${isal_dir}/aes/cbc_enc_256_x4_sb.asm
${isal_dir}/aes/cbc_enc_256_x8_sb.asm)
-if(HAVE_GOOD_YASM_ELF64)
+if(HAVE_YASM_X64)
add_dependencies(crypto_plugins ceph_crypto_isal)
-endif(HAVE_GOOD_YASM_ELF64)
+endif(HAVE_YASM_X64)
add_library(ceph_crypto_isal SHARED ${isal_crypto_plugin_srcs})
target_include_directories(ceph_crypto_isal PRIVATE ${isal_dir}/include)
add_subdirectory(shec)
add_subdirectory(clay)
-if(HAVE_BETTER_YASM_ELF64 OR HAVE_ARMV8_SIMD)
+if(HAVE_YASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
add_subdirectory(isa)
set(EC_ISA_LIB ec_isa)
endif()
set(isal_src_dir ${CMAKE_SOURCE_DIR}/src/isa-l)
include_directories(${isal_src_dir}/include)
-if(HAVE_BETTER_YASM_ELF64)
+if(HAVE_YASM_X64_AVX2)
set(isa_srcs
${isal_src_dir}/erasure_code/ec_base.c
${isal_src_dir}/erasure_code/gf_2vect_dot_prod_sse.asm
#cmakedefine HAVE_NAME_TO_HANDLE_AT
/* we have a recent yasm and are x86_64 */
-#cmakedefine HAVE_GOOD_YASM_ELF64
+#cmakedefine HAVE_YASM_X64
-/* yasm can also build the isa-l */
-#cmakedefine HAVE_BETTER_YASM_ELF64
+/* yasm can also build the isa-l:avx2 */
+#cmakedefine HAVE_YASM_X64_AVX2
/* Define if isa-l is compiled for arm64 */
#cmakedefine HAVE_ARMV8_SIMD
add_dependencies(unittest_erasure_code_plugin_jerasure
ec_jerasure)
-if(HAVE_BETTER_YASM_ELF64 OR HAVE_ARMV8_SIMD)
+if(HAVE_YASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
#unittest_erasure_code_isa
add_executable(unittest_erasure_code_isa
)
add_dependencies(unittest_erasure_code_plugin_isa
ec_isa)
-endif(HAVE_BETTER_YASM_ELF64 OR HAVE_ARMV8_SIMD)
+endif(HAVE_YASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
# unittest_erasure_code_lrc
add_executable(unittest_erasure_code_lrc
EXPECT_TRUE(erasure_code.get());
}
}
-#ifdef HAVE_BETTER_YASM_ELF64
+#ifdef HAVE_YASM_X64_AVX2
//check clay plugin with scalar_mds=isa
{
const char *techniques[] = {