diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-15 17:35:55 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-15 17:35:55 +0200 |
commit | 2a4da2ebd3aafce3c98d49f3840ca743a93d42a9 (patch) | |
tree | 1ddedf0a192b38a30db3873b575bc66b150604ac /c | |
parent | 512be590e9e18f37d2e285d267ffbc16fdd8a694 (diff) |
Format code
Diffstat (limited to 'c')
-rw-r--r-- | c/sha1/sha1-x86.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/c/sha1/sha1-x86.c b/c/sha1/sha1-x86.c index 2fcf7d8..fb0f3ef 100644 --- a/c/sha1/sha1-x86.c +++ b/c/sha1/sha1-x86.c @@ -71,14 +71,14 @@ sha1end(sha1_t *s, uint8_t dgst[SHA1DGSTSZ]) ((uint32_t *)dgst)[i] = htobe32(s->dgst[i]); } -#define R(mi, mj, mk, ml, ei, ej, f) \ - do { \ - ei = _mm_sha1nexte_epu32(ei, mi); \ - ej = abcd; \ - mj = _mm_sha1msg2_epu32(mj, mi); \ - abcd = _mm_sha1rnds4_epu32(abcd, ei, f); \ - ml = _mm_sha1msg1_epu32(ml, mi); \ - mk = _mm_xor_si128(mk, mi); \ +#define R(mi, mj, mk, ml, ei, ej, f) \ + do { \ + ei = _mm_sha1nexte_epu32(ei, mi); \ + ej = abcd; \ + mj = _mm_sha1msg2_epu32(mj, mi); \ + abcd = _mm_sha1rnds4_epu32(abcd, ei, f); \ + ml = _mm_sha1msg1_epu32(ml, mi); \ + mk = _mm_xor_si128(mk, mi); \ } while (0) static void |