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:
authorWilliam Hesse <whesse@google.com>2016-02-02 17:31:53 +0300
committerAdam Langley <agl@google.com>2016-02-02 19:03:33 +0300
commitbf3335c62143b1d1b847cb5bea24b70e7c6407b0 (patch)
tree85242cf7d47c5bfa6349cba66adfa81863c3e28f /crypto/curve25519/asm/x25519-asm-x86_64.S
parent72f7e21087aaf38c781de3e659ccf13f0735de27 (diff)
Add #ifdef guards to crypto/curve25519 assembly files.
Add guards for the architecture and OPENSSL_NO_ASM to the assembly-language files in crypto/curve25519/asm. The Dart compilation of BoringSSL includes all files, because the architecture is not known when gyp is run. Change-Id: I66f5ae525266b63b0fe3a929012b771d545779b5 Reviewed-on: https://boringssl-review.googlesource.com/7030 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/curve25519/asm/x25519-asm-x86_64.S')
-rw-r--r--crypto/curve25519/asm/x25519-asm-x86_64.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/curve25519/asm/x25519-asm-x86_64.S b/crypto/curve25519/asm/x25519-asm-x86_64.S
index 7e86a231..531ac163 100644
--- a/crypto/curve25519/asm/x25519-asm-x86_64.S
+++ b/crypto/curve25519/asm/x25519-asm-x86_64.S
@@ -17,6 +17,9 @@
* domain licensed but the standard ISC license is included above to keep
* licensing simple. */
+#if !defined(OPENSSL_NO_ASM)
+#if defined(__x86_64__)
+
.data
.p2align 4
@@ -1929,3 +1932,6 @@ add %r11,%rsp
mov %rdi,%rax
mov %rsi,%rdx
ret
+
+#endif /* __x86_64__ */
+#endif /* !OPENSSL_NO_ASM */