1
mirror of https://github.com/jedisct1/libsodium.git synced 2025-01-01 22:52:52 -07:00

Move d2 definition close to the d definition

This commit is contained in:
Frank Denis 2017-11-01 19:38:16 +01:00
parent f57fcb9c26
commit 8e364d29db

View File

@ -1327,6 +1327,12 @@ slide_vartime(signed char *r, const unsigned char *a)
static const fe d = { -10913610, 13857413, -15372611, 6949391, 114729,
-8787816, -6275908, -3247719, -18696448, -12055116 };
/* 2 * d =
* 16295367250680780974490674513165176452449235426866156013048779062215315747161
*/
static const fe d2 = { -21827239, -5839606, -30745221, 13898782, 229458,
15978800, -12551817, -6495438, 29715968, 9444199 };
/* sqrt(-1) */
static const fe sqrtm1 = { -32595792, -7943725, 9377950, 3500415, 12389472,
-272473, -25146209, -2005654, 326686, 11406482 };
@ -1529,12 +1535,6 @@ ge_p3_0(ge_p3 *h)
r = p
*/
/* 2 * d =
* 16295367250680780974490674513165176452449235426866156013048779062215315747161
*/
static const fe d2 = { -21827239, -5839606, -30745221, 13898782, 229458,
15978800, -12551817, -6495438, 29715968, 9444199 };
void
ge_p3_to_cached(ge_cached *r, const ge_p3 *p)
{