aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-05-27 08:52:00 -0400
committerPaul Duncan <pabs@pablotron.org>2024-05-27 08:52:00 -0400
commit37d15a93739d845bc27bb6152cef17ca9b774d82 (patch)
treee0e2e6d9a1783e1430e2fda98264a8bc19bd063d
parent4c3394528c540de31ee2785344735ec9f46c7559 (diff)
downloadsha3-37d15a93739d845bc27bb6152cef17ca9b774d82.tar.bz2
sha3-37d15a93739d845bc27bb6152cef17ca9b774d82.zip
sha3.c: permute_n_avx2(): theta: remove unnecessary assignment
-rw-r--r--sha3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sha3.c b/sha3.c
index 2c60a97..714b31c 100644
--- a/sha3.c
+++ b/sha3.c
@@ -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;