From 26b05245f0d3a6cea970f104f6aff388948fe318 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 31 Dec 2017 13:23:08 +0100 Subject: [PATCH] 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 --- crypto/ec/curve25519.c | 1 + 1 file changed, 1 insertion(+) 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 #if !defined(PEDANTIC) && \ + !defined(__sparc__) && \ (defined(__SIZEOF_INT128__) && __SIZEOF_INT128__==16) /* * Base 2^51 implementation. -- 2.25.1