diff options
author | Paul Duncan <pabs@pablotron.org> | 2024-05-27 08:52:00 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2024-05-27 08:52:00 -0400 |
commit | 37d15a93739d845bc27bb6152cef17ca9b774d82 (patch) | |
tree | e0e2e6d9a1783e1430e2fda98264a8bc19bd063d | |
parent | 4c3394528c540de31ee2785344735ec9f46c7559 (diff) | |
download | sha3-37d15a93739d845bc27bb6152cef17ca9b774d82.tar.bz2 sha3-37d15a93739d845bc27bb6152cef17ca9b774d82.zip |
sha3.c: permute_n_avx2(): theta: remove unnecessary assignment
-rw-r--r-- | sha3.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -635,9 +635,8 @@ static inline void permute_n_avx2(uint64_t s[static 25], const size_t num_rounds const __m256i d0_lo = (_mm256_permute4x64_epi64(c_lo, THETA_I0_LO) & ~LM0) | (c_hi & LM0), d0_hi = _mm256_permute4x64_epi64(c_lo, THETA_I0_HI), d1_lo = _mm256_blend_epi32(_mm256_permute4x64_epi64(c_lo, THETA_I1_LO), _mm256_permute4x64_epi64(c_hi, THETA_I1_HI), 0xc0), - d1_hi = c_lo, d_lo = d0_lo ^ AVX2_ROLI(d1_lo, 1), - d_hi = d0_hi ^ AVX2_ROLI(d1_hi, 1); + d_hi = d0_hi ^ AVX2_ROLI(c_lo, 1); // row = xor(row, d) r0_lo ^= d_lo; r1_lo ^= d_lo; r2_lo ^= d_lo; r3_lo ^= d_lo; r4_lo ^= d_lo; |