Skip to content

Commit

Permalink
make rest of the arm capability functions in line with x86 ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Yang committed Jul 26, 2023
1 parent 03ba9ca commit 92dcae9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crypto/fipsmodule/cpucap/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,14 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_PMULL_capable(void) {
}

OPENSSL_INLINE int CRYPTO_is_ARMv8_GCM_8x_capable(void) {
#if defined(OPENSSL_STATIC_ARMCAP)
return 0;
#else
return ((OPENSSL_armcap_P & ARMV8_SHA3) != 0 &&
((OPENSSL_armcap_P & ARMV8_NEOVERSE_V1) != 0 ||
(OPENSSL_armcap_P & ARMV8_APPLE_M1) != 0));
#endif
}

OPENSSL_INLINE int CRYPTO_is_ARMv8_wide_multiplier_capable(void) {
#if defined(OPENSSL_STATIC_ARMCAP)
return 0;
#else
return (OPENSSL_armcap_P & ARMV8_NEOVERSE_V1) != 0 ||
(OPENSSL_armcap_P & ARMV8_APPLE_M1) != 0;
#endif
}

#endif // OPENSSL_ARM || OPENSSL_AARCH64
Expand Down

0 comments on commit 92dcae9

Please sign in to comment.