Skip to content

Commit

Permalink
Fix CRYPTO_is_AVX512IFMA_capable
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Sep 17, 2024
1 parent 998227d commit 078ae42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/fipsmodule/cpucap/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ OPENSSL_INLINE int CRYPTO_is_VPCLMULQDQ_capable(void) {
}

OPENSSL_INLINE int CRYPTO_is_AVX512IFMA_capable(void) {
return (OPENSSL_ia32cap_get()[3] & (1u << 31 | 1u << 21 |1u << 17 | 1u << 16)) != 0;
return (OPENSSL_ia32cap_get()[2] & (1u << 31 | 1u << 21 |1u << 17 | 1u << 16)) != 0;
}

OPENSSL_INLINE int CRYPTO_is_VBMI2_capable(void) {
Expand Down

0 comments on commit 078ae42

Please sign in to comment.