Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-11-18 02:25:00 +0300
committerAdam Langley <agl@google.com>2015-11-19 03:15:11 +0300
commit9e65d487b8b907a3ddb84f736b89e0a8f95abce3 (patch)
tree5dcbac1da33487eab26516278213d721db32c5cc /crypto/cpu-arm.c
parent3ac32b1eda0da7a99d9c2b6c605fe50af80ccd90 (diff)
Allow |CRYPTO_is_NEON_capable| to be known at compile time, if possible.
If -mfpu=neon is passed then we don't need to worry about checking for NEON support at run time. This change allows |CRYPTO_is_NEON_capable| to statically return 1 in this case. This then allows the compiler to discard generic code in several cases. Change-Id: I3b229740ea3d5cb0a304f365c400a0996d0c66ef Reviewed-on: https://boringssl-review.googlesource.com/6523 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/cpu-arm.c')
-rw-r--r--crypto/cpu-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cpu-arm.c b/crypto/cpu-arm.c
index 14ad2ee4..675d174e 100644
--- a/crypto/cpu-arm.c
+++ b/crypto/cpu-arm.c
@@ -34,7 +34,7 @@ unsigned long getauxval(unsigned long type) __attribute__((weak));
extern uint32_t OPENSSL_armcap_P;
-char CRYPTO_is_NEON_capable(void) {
+char CRYPTO_is_NEON_capable_at_runtime(void) {
return (OPENSSL_armcap_P & ARMV7_NEON) != 0;
}