2013-03-11 Niels Möller <nisse@lysator.liu.se>
+ * sha256-compress.c (ROUND): Eliminated a temporary.
+
* armv7/sha1-compress.asm: New file, 9% speedup.
* testsuite/testutils.c (test_hash): Test different alignments for
/* It's crucial that DATA is only used once, as that argument will
* have side effects. */
-#define ROUND(a,b,c,d,e,f,g,h,k,data) do { \
- uint32_t T = h + S1(e) + Choice(e,f,g) + k + data; \
- d += T; \
- h = T + S0(a) + Majority(a,b,c); \
-} while (0)
+#define ROUND(a,b,c,d,e,f,g,h,k,data) do { \
+ h += S1(e) + Choice(e,f,g) + k + data; \
+ d += h; \
+ h += S0(a) + Majority(a,b,c); \
+ } while (0)
void
_nettle_sha256_compress(uint32_t *state, const uint8_t *input, const uint32_t *k)