Skip to content

Commit

Permalink
defined(__unix__) -> !defined(_WIN32)
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Aug 19, 2024
1 parent dcff6b6 commit 4cc34b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c/blake3_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void blake3_xof_many(const uint32_t cv[8],
}
#if defined(IS_X86)
const enum cpu_feature features = get_cpu_features();
#if defined(__unix__) && !defined(BLAKE3_NO_AVX512)
#if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512)
if (features & AVX512VL) {
blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks);
return;
Expand Down
2 changes: 1 addition & 1 deletion c/blake3_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,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(__unix__)
#if !defined(_WIN32)
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,
Expand Down

0 comments on commit 4cc34b0

Please sign in to comment.