Skip to content

Commit

Permalink
Fix initial value of pclmul_available when __PCLMUL__ is not defined
Browse files Browse the repository at this point in the history
Previous value was causing too many calls to `pclmul_check_available`.
  • Loading branch information
xavierleroy committed Jul 8, 2024
1 parent 84bc924 commit 0c037d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pclmul.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ EXPORT void pclmul_mult(uint8_t res[16],

#else

EXPORT int pclmul_available = -1;
EXPORT int pclmul_available = 0;

EXPORT int pclmul_check_available(void) { return 0; }

Expand Down

0 comments on commit 0c037d9

Please sign in to comment.