summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-10-13 19:15:15 +0200
committerAndy Polyakov <appro@openssl.org>2013-10-13 19:24:22 +0200
commit958608ca1c6c10d933b424159866f13963f8a881 (patch)
tree62314c01dda8b8ee037bb67ebb3ef730060fd2ea /crypto/bn
parent1aecb23f5b7364a999c2c061187c9176ee89e3b1 (diff)
Initial aarch64 bits.
(cherry picked from commit 039081b80977e2a5de84e1f88f8b4d025b559956)
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_lcl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h
index c03fe2eac7..83550ba390 100644
--- a/crypto/bn/bn_lcl.h
+++ b/crypto/bn/bn_lcl.h
@@ -318,6 +318,15 @@ extern "C" {
: "r"(a), "r"(b));
# endif
# endif
+# elif defined(__aarch64__) && defined(SIXTY_FOUR_BIT_LONG)
+# if defined(__GNUC__) && __GNUC__>=2
+# define BN_UMULT_HIGH(a,b) ({ \
+ register BN_ULONG ret; \
+ asm ("umulh %0,%1,%2" \
+ : "=r"(ret) \
+ : "r"(a), "r"(b)); \
+ ret; })
+# endif
# endif /* cpu */
#endif /* OPENSSL_NO_ASM */