2023-12-27 12:06:17 +08:00
|
|
|
/* crc32_vpclmulqdq.c -- VPCMULQDQ-based CRC32 folding implementation.
|
|
|
|
* Copyright Wangyang Guo (wangyang.guo@intel.com)
|
|
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
*/
|
|
|
|
|
2024-09-12 21:05:24 +08:00
|
|
|
#ifdef X86_VPCLMULQDQ_CRC
|
2023-12-27 12:06:17 +08:00
|
|
|
|
|
|
|
#define X86_VPCLMULQDQ
|
|
|
|
#define CRC32_FOLD_COPY crc32_fold_vpclmulqdq_copy
|
|
|
|
#define CRC32_FOLD crc32_fold_vpclmulqdq
|
|
|
|
#define CRC32_FOLD_RESET crc32_fold_vpclmulqdq_reset
|
|
|
|
#define CRC32_FOLD_FINAL crc32_fold_vpclmulqdq_final
|
|
|
|
#define CRC32 crc32_vpclmulqdq
|
|
|
|
|
|
|
|
#include "crc32_pclmulqdq_tpl.h"
|
|
|
|
|
|
|
|
#endif
|