From: Thomas Pornin Date: Mon, 14 Aug 2017 17:55:34 +0000 (+0200) Subject: Some more renaming to avoid shadowing. X-Git-Tag: v0.6~27 X-Git-Url: https://bearssl.org/gitweb//home/git/?a=commitdiff_plain;h=8cd3f8fecbb8eee7d4cd71c464694cf1621c5e99;p=BearSSL Some more renaming to avoid shadowing. --- diff --git a/src/ec/ec_p256_m31.c b/src/ec/ec_p256_m31.c index b9826c3..ec22c3e 100644 --- a/src/ec/ec_p256_m31.c +++ b/src/ec/ec_p256_m31.c @@ -535,17 +535,17 @@ square_f256(uint32_t *d, const uint32_t *a) } for (i = 17; i >= 9; i --) { - uint64_t x; - - x = s[i]; - s[i - 1] += ARSHW(x, 2); - s[i - 2] += (x << 28) & 0x3FFFFFFF; - s[i - 2] -= ARSHW(x, 4); - s[i - 3] -= (x << 26) & 0x3FFFFFFF; - s[i - 5] -= ARSHW(x, 10); - s[i - 6] -= (x << 20) & 0x3FFFFFFF; - s[i - 8] += ARSHW(x, 16); - s[i - 9] += (x << 14) & 0x3FFFFFFF; + uint64_t y; + + y = s[i]; + s[i - 1] += ARSHW(y, 2); + s[i - 2] += (y << 28) & 0x3FFFFFFF; + s[i - 2] -= ARSHW(y, 4); + s[i - 3] -= (y << 26) & 0x3FFFFFFF; + s[i - 5] -= ARSHW(y, 10); + s[i - 6] -= (y << 20) & 0x3FFFFFFF; + s[i - 8] += ARSHW(y, 16); + s[i - 9] += (y << 14) & 0x3FFFFFFF; } /*