ec/curve25519.c: avoid 2^51 radix on SPARC.
authorAndy Polyakov <appro@openssl.org>
Sun, 31 Dec 2017 12:23:08 +0000 (13:23 +0100)
committerAndy Polyakov <appro@openssl.org>
Sun, 7 Jan 2018 20:40:31 +0000 (21:40 +0100)
commit26b05245f0d3a6cea970f104f6aff388948fe318
tree619f76f2c9e3a1377f8aa45685ff20b7c52d86de
parent10bc3409459a525654d6b986b3cd49d22dd95460
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>
crypto/ec/curve25519.c