Commit 26b05245 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

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: default avatarTim Hudson <tjh@openssl.org>
parent 10bc3409
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#include <openssl/sha.h>

#if !defined(PEDANTIC) && \
    !defined(__sparc__) && \
    (defined(__SIZEOF_INT128__) && __SIZEOF_INT128__==16)
/*
 * Base 2^51 implementation.