summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-12-31 13:23:08 +0100
committerAndy Polyakov <appro@openssl.org>2018-01-07 21:40:31 +0100
commit26b05245f0d3a6cea970f104f6aff388948fe318 (patch)
tree619f76f2c9e3a1377f8aa45685ff20b7c52d86de /crypto
parent10bc3409459a525654d6b986b3cd49d22dd95460 (diff)
ec/curve25519.c: avoid 2^51 radix on SPARC.
SPARC ISA doesn't have provisions to back up 128-bit multiplications and additions. And so multiplications are done with library calls and carries with comparisons and conditional moves. As result base 2^51 code is >40% slower... Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/curve25519.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/curve25519.c b/crypto/ec/curve25519.c
index d1c725fa39..f32fc04d6a 100644
--- a/crypto/ec/curve25519.c
+++ b/crypto/ec/curve25519.c
@@ -12,6 +12,7 @@
#include <openssl/sha.h>
#if !defined(PEDANTIC) && \
+ !defined(__sparc__) && \
(defined(__SIZEOF_INT128__) && __SIZEOF_INT128__==16)
/*
* Base 2^51 implementation.