Skip to content

Commit

Permalink
keccak: Fix implementation selection
Browse files Browse the repository at this point in the history
This is not available when building with clang-cl.
  • Loading branch information
chfast committed Aug 9, 2021
1 parent 221dc56 commit ec47e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/keccak/keccak.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void keccakf1600_generic(uint64_t state[25])
static void (*keccakf1600_best)(uint64_t[25]) = keccakf1600_generic;


#if defined(__x86_64__) && __has_attribute(target)
#if !defined(_MSC_VER) && defined(__x86_64__) && __has_attribute(target)
__attribute__((target("bmi,bmi2"))) static void keccakf1600_bmi(uint64_t state[25])
{
keccakf1600_implementation(state);
Expand Down

0 comments on commit ec47e39

Please sign in to comment.