diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2022-06-05 16:54:32 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2022-06-24 15:12:00 +0200 |
| commit | 7e243e4436ce968a6d5261e6ff9203aa80614177 (patch) | |
| tree | 8821736de9360e70d1ed367b0df0385e9ca9a25a /cpu_features.h | |
| parent | 805aee36adadd39dc2b864fc41c4c45850a789ad (diff) | |
| download | Project-Tick-7e243e4436ce968a6d5261e6ff9203aa80614177.tar.gz Project-Tick-7e243e4436ce968a6d5261e6ff9203aa80614177.zip | |
Fix MSVC possible loss of data warning in crc32_pclmulqdq by converting len types to use uint64_t.
arch\x86\crc32_fold_pclmulqdq.c(604,43): warning C4244: 'function':
conversion from 'uint64_t' to 'size_t', possible loss of data
Diffstat (limited to 'cpu_features.h')
| -rw-r--r-- | cpu_features.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_features.h b/cpu_features.h index aec267bf48..50fdf6156f 100644 --- a/cpu_features.h +++ b/cpu_features.h @@ -65,8 +65,8 @@ extern uint32_t adler32_fold_copy_avx512_vnni(uint32_t adler, uint8_t *dst, cons /* CRC32 folding */ #ifdef X86_PCLMULQDQ_CRC extern uint32_t crc32_fold_pclmulqdq_reset(crc32_fold *crc); -extern void crc32_fold_pclmulqdq_copy(crc32_fold *crc, uint8_t *dst, const uint8_t *src, size_t len); -extern void crc32_fold_pclmulqdq(crc32_fold *crc, const uint8_t *src, size_t len, uint32_t init_crc); +extern void crc32_fold_pclmulqdq_copy(crc32_fold *crc, uint8_t *dst, const uint8_t *src, uint64_t len); +extern void crc32_fold_pclmulqdq(crc32_fold *crc, const uint8_t *src, uint64_t len, uint32_t init_crc); extern uint32_t crc32_fold_pclmulqdq_final(crc32_fold *crc); extern uint32_t crc32_pclmulqdq(uint32_t crc32, const unsigned char* buf, uint64_t len); #endif |
