This commit is contained in:
Frank Denis 2017-11-06 02:00:32 +01:00
parent a5b9c381e5
commit 0a20032a8f
2 changed files with 8 additions and 4 deletions

View File

@ -9,7 +9,8 @@
#define fe51_square(x, y) fe51_nsquare(x, y, 1) #define fe51_square(x, y) fe51_nsquare(x, y, 1)
void fe51_invert(fe51 *r, const fe51 *x) void
fe51_invert(fe51 *r, const fe51 *x)
{ {
fe51 z2; fe51 z2;
fe51 z9; fe51 z9;

View File

@ -6,7 +6,8 @@
#ifdef HAVE_AVX_ASM #ifdef HAVE_AVX_ASM
static uint64_t load_3(const unsigned char *in) static uint64_t
load_3(const unsigned char *in)
{ {
uint64_t result; uint64_t result;
result = (uint64_t) in[0]; result = (uint64_t) in[0];
@ -15,7 +16,8 @@ static uint64_t load_3(const unsigned char *in)
return result; return result;
} }
static uint64_t load_4(const unsigned char *in) static uint64_t
load_4(const unsigned char *in)
{ {
uint64_t result; uint64_t result;
result = (uint64_t) in[0]; result = (uint64_t) in[0];
@ -25,7 +27,8 @@ static uint64_t load_4(const unsigned char *in)
return result; return result;
} }
void fe_frombytes(fe h,const unsigned char *s) void
fe_frombytes(fe h, const unsigned char *s)
{ {
uint64_t h0 = load_4(s); uint64_t h0 = load_4(s);
uint64_t h1 = load_3(s + 4) << 6; uint64_t h1 = load_3(s + 4) << 6;