aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-08 01:01:34 +0200
committerMattias Andrée <maandree@kth.se>2022-07-08 01:01:34 +0200
commit6fc8acec8f0b60a90079bede17c6d0a5e2503b9e (patch)
tree81c7cf96cf2872a1271f3887e6f6f8d625d095ec /process.c
parentFix warnings (diff)
downloadlibsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.gz
libsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.bz2
libsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index a60942c..43f299e 100644
--- a/process.c
+++ b/process.c
@@ -260,8 +260,9 @@ process_x86_sha(struct libsha1_state *restrict state, const unsigned char *restr
abcd_orig = _mm_add_epi32(abcd, abcd_orig);
}
- _mm_storeu_si128((__m128i *)&state->h[0], _mm_shuffle_epi32(abcd_orig, 32 - 5));
+ abcd_orig = _mm_shuffle_epi32(abcd_orig, 32 - 5);
state->h[4] = (uint_least32_t)_mm_extract_epi32(e000_orig, 3);
+ _mm_storeu_si128((__m128i *)&state->h[0], abcd_orig);
return off;
}