KNF
This commit is contained in:
parent
a5b9c381e5
commit
0a20032a8f
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user