From 9f7a9798a2956370a61126d5dc99144bdd6e31bd Mon Sep 17 00:00:00 2001 From: Josiah Carlson Date: Sun, 5 May 2024 09:33:26 -0700 Subject: [PATCH] Need defines for Windows build --- crccombine.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crccombine.h b/crccombine.h index 8da7c5fe..8379f639 100644 --- a/crccombine.h +++ b/crccombine.h @@ -3,8 +3,11 @@ /* mask types */ +#if defined(__i386__) || defined(__X86_64__) typedef unsigned long long v2uq __attribute__ ((vector_size (16))); - uint64_t gf2_matrix_times_vec2(uint64_t *mat, uint64_t vec); +#else +uint64_t gf2_matrix_times_switch(uint64_t *mat, uint64_t vec); +#endif void init_combine_cache(uint64_t poly, uint8_t dim); uint64_t crc64_combine(uint64_t crc1, uint64_t crc2, uintmax_t len2, uint64_t poly, uint8_t dim);