smult_curve25519_donna_c64.c assumes little-endian.

This commit is contained in:
Frank Denis 2014-05-09 18:41:39 -07:00
parent 8631fe9d1a
commit be3c786e23

View File

@ -189,7 +189,7 @@ fsquare_times(felem output, const felem in, limb count) {
output[4] = r4; output[4] = r4;
} }
#ifndef CPU_ALIGNED_ACCESS_REQUIRED #if !defined(CPU_ALIGNED_ACCESS_REQUIRED) && defined(NATIVE_LITTLE_ENDIAN)
# define U8TO64(p) (*((const uint64_t *) (p))) # define U8TO64(p) (*((const uint64_t *) (p)))
# define U64TO8(p, v) (*((uint64_t *) (p)) = (v)) # define U64TO8(p, v) (*((uint64_t *) (p)) = (v))
#else #else