Skip to content

Commit 4cc34b0

Browse files
committed
defined(__unix__) -> !defined(_WIN32)
1 parent dcff6b6 commit 4cc34b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

c/blake3_dispatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void blake3_xof_many(const uint32_t cv[8],
234234
}
235235
#if defined(IS_X86)
236236
const enum cpu_feature features = get_cpu_features();
237-
#if defined(__unix__) && !defined(BLAKE3_NO_AVX512)
237+
#if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512)
238238
if (features & AVX512VL) {
239239
blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks);
240240
return;

c/blake3_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs,
283283
uint8_t flags, uint8_t flags_start,
284284
uint8_t flags_end, uint8_t *out);
285285

286-
#if defined(__unix__)
286+
#if !defined(_WIN32)
287287
void blake3_xof_many_avx512(const uint32_t cv[8],
288288
const uint8_t block[BLAKE3_BLOCK_LEN],
289289
uint8_t block_len, uint64_t counter, uint8_t flags,

0 commit comments

Comments
 (0)