Skip to content

Commit

Permalink
portable implementation of crc32_hw
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Jan 10, 2025
1 parent 45b3c5e commit 518abd1
Show file tree
Hide file tree
Showing 6 changed files with 535 additions and 28 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,9 @@ file(GLOB PHOTON_SRC RELATIVE "${PROJECT_SOURCE_DIR}"
)
if (${ARCH} STREQUAL x86_64)
enable_language(ASM_NASM)
list(APPEND PHOTON_SRC ${PROJECT_SOURCE_DIR}/common/checksum/crc64_ecma_refl_by8.asm
${PROJECT_SOURCE_DIR}/common/checksum/crc32_iscsi_00.asm)
list(APPEND PHOTON_SRC ${PROJECT_SOURCE_DIR}/common/checksum/crc64_ecma_refl_by8.asm)
else ()
list(APPEND PHOTON_SRC ${PROJECT_SOURCE_DIR}/common/checksum/crc64_ecma_refl_pmull.S
${PROJECT_SOURCE_DIR}/common/checksum/crc32_iscsi_crc_ext.S)
list(APPEND PHOTON_SRC ${PROJECT_SOURCE_DIR}/common/checksum/crc64_ecma_refl_pmull.S)
endif ()

if (APPLE)
Expand Down
Loading

0 comments on commit 518abd1

Please sign in to comment.