aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-05-27 00:32:16 -0400
committerPaul Duncan <pabs@pablotron.org>2024-05-27 00:32:16 -0400
commit5be616cbcdb7859e071d4a8d671746d0c28509be (patch)
treee617784b38a455ae17961dc0ebc7efe298c26cd1
parent7f0b8b3905abdf164b5f85477d20c5d45eccef00 (diff)
downloadsha3-5be616cbcdb7859e071d4a8d671746d0c28509be.tar.bz2
sha3-5be616cbcdb7859e071d4a8d671746d0c28509be.zip
sha3.c: permute_n_avx2(): remove K64
-rw-r--r--sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.c b/sha3.c
index 326f9e0..c65fe13 100644
--- a/sha3.c
+++ b/sha3.c
@@ -565,7 +565,7 @@ static const __m256i LM0 = { ~0, 0, 0, 0 }, // only lane 0
#define AVX2_ROLI(v, n) (_mm256_slli_epi64((v), (n)) | _mm256_srli_epi64((v), (64-(n))))
// rotate left by vector
-#define AVX2_ROLV(v, n) (_mm256_sllv_epi64((v), (n)) | _mm256_srlv_epi64((v), (K64-(n))))
+#define AVX2_ROLV(v, n) (_mm256_sllv_epi64((v), (n)) | _mm256_srlv_epi64((v), (64-(n))))
// theta permute IDs
#define THETA_I0_LO 0x90 // 0, 0, 1, 2 -> 0b10010000 -> 0x90