aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkikairoya <[email protected]>2025-07-13 10:11:01 +0900
committerHenrik Gaßmann <[email protected]>2025-12-09 20:38:21 +0100
commit890050cb9b89448a25e067349aed9734a3b03d5e (patch)
tree7dbadadd327c70ef5a5d40f88bcc09dee8e07cbd
parent308b95dfa15d5a0aa8cb3c5534ffd90d76122c46 (diff)
Fix Cygwin build by skipping blake3_xof_many_avx512
Temporarily skip blake3_xof_many_avx512 on Cygwin, as is already done for _WIN32. This workaround should be removed when blake3_xof_many_avx512 is implemented in blake3_avx512_x86-64_windows_gnu.S . fixes https://github.com/BLAKE3-team/BLAKE3/issues/494
-rw-r--r--c/blake3_dispatch.c2
-rw-r--r--c/blake3_impl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c
index eae7a01..14dfbbe 100644
--- a/c/blake3_dispatch.c
+++ b/c/blake3_dispatch.c
@@ -235,7 +235,7 @@ void blake3_xof_many(const uint32_t cv[8],
#if defined(IS_X86)
const enum cpu_feature features = get_cpu_features();
MAYBE_UNUSED(features);
-#if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512)
+#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(BLAKE3_NO_AVX512)
if (features & AVX512VL) {
blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks);
return;
diff --git a/c/blake3_impl.h b/c/blake3_impl.h
index facd599..88e71e4 100644
--- a/c/blake3_impl.h
+++ b/c/blake3_impl.h
@@ -309,7 +309,7 @@ void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs,
uint8_t flags, uint8_t flags_start,
uint8_t flags_end, uint8_t *out);
-#if !defined(_WIN32)
+#if !defined(_WIN32) && !defined(__CYGWIN__)
void blake3_xof_many_avx512(const uint32_t cv[8],
const uint8_t block[BLAKE3_BLOCK_LEN],
uint8_t block_len, uint64_t counter, uint8_t flags,