mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -07:00
KNF
This commit is contained in:
parent
a5b9c381e5
commit
0a20032a8f
@ -9,7 +9,8 @@
|
||||
|
||||
#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 z9;
|
||||
|
@ -6,7 +6,8 @@
|
||||
|
||||
#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;
|
||||
result = (uint64_t) in[0];
|
||||
@ -15,7 +16,8 @@ static uint64_t load_3(const unsigned char *in)
|
||||
return result;
|
||||
}
|
||||
|
||||
static uint64_t load_4(const unsigned char *in)
|
||||
static uint64_t
|
||||
load_4(const unsigned char *in)
|
||||
{
|
||||
uint64_t result;
|
||||
result = (uint64_t) in[0];
|
||||
@ -25,7 +27,8 @@ static uint64_t load_4(const unsigned char *in)
|
||||
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 h1 = load_3(s + 4) << 6;
|
||||
|
Loading…
Reference in New Issue
Block a user