Stop duplicating the OPENSSL_armcap_P declaration

Change-Id: I9ccf1e7442baf84fe8c4aa4c09b69f7289ccd7ba
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/62065
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
chromium-stable
David Benjamin 1 year ago committed by Boringssl LUCI CQ
parent c49cb59100
commit 0152f73962
  1. 2
      crypto/cpu_aarch64_apple.c
  2. 1
      crypto/cpu_aarch64_freebsd.c
  3. 1
      crypto/cpu_aarch64_fuchsia.c
  4. 2
      crypto/cpu_aarch64_linux.c
  5. 1
      crypto/cpu_aarch64_openbsd.c
  6. 2
      crypto/cpu_aarch64_sysreg.c
  7. 2
      crypto/cpu_aarch64_win.c
  8. 2
      crypto/cpu_arm.c
  9. 1
      crypto/cpu_arm_freebsd.c
  10. 2
      crypto/cpu_arm_linux.c
  11. 1
      crypto/cpu_arm_openbsd.c
  12. 2
      crypto/internal.h

@ -23,8 +23,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
static int has_hw_feature(const char *name) {
int value;
size_t len = sizeof(value);

@ -22,7 +22,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
// ID_AA64ISAR0_*_VAL are defined starting FreeBSD 13.0. When FreeBSD
// 12.x is out of support, these compatibility macros can be removed.

@ -23,7 +23,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
uint32_t hwcap;

@ -22,8 +22,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
unsigned long hwcap = getauxval(AT_HWCAP);

@ -25,7 +25,6 @@
#include "internal.h"
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 };

@ -84,8 +84,6 @@ static uint32_t read_armcap(void) {
return armcap;
}
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) { OPENSSL_armcap_P |= read_armcap(); }
#endif // OPENSSL_AARCH64 && !OPENSSL_STATIC_ARMCAP && ANDROID_BAREMETAL

@ -22,7 +22,7 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
// We do not need to check for the presence of NEON, as Armv8-A always has it
OPENSSL_armcap_P |= ARMV7_NEON;

@ -20,8 +20,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
int CRYPTO_is_NEON_capable_at_runtime(void) {
return (OPENSSL_armcap_P & ARMV7_NEON) != 0;
}

@ -22,7 +22,6 @@
#include <openssl/arm_arch.h>
#include <openssl/mem.h>
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
unsigned long hwcap = 0, hwcap2 = 0;

@ -95,8 +95,6 @@ err:
return ret;
}
extern uint32_t OPENSSL_armcap_P;
static int g_needs_hwcap2_workaround;
void OPENSSL_cpuid_setup(void) {

@ -19,7 +19,6 @@
#include <openssl/arm_arch.h>
extern uint32_t OPENSSL_armcap_P;
void OPENSSL_cpuid_setup(void) {
// OpenBSD does not support arm32 machines without NEON

@ -1353,6 +1353,8 @@ OPENSSL_INLINE int CRYPTO_is_ADX_capable(void) {
#if defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
extern uint32_t OPENSSL_armcap_P;
#if defined(OPENSSL_APPLE) && defined(OPENSSL_ARM)
// We do not detect any features at runtime for Apple's 32-bit ARM platforms. On
// 64-bit ARM, we detect some post-ARMv8.0 features.

Loading…
Cancel
Save