From b5f4bdae91452ec45ea973234f1ff9dbd3011b58 Mon Sep 17 00:00:00 2001 From: John Marshall Date: Fri, 17 Jun 2022 18:42:07 +0100 Subject: [PATCH] Make _mm_load_si128() explicit The previous code implicitly caused a load; change it so the load intrinsic is explicitly invoked, as the others are. (This in fact makes no difference to the generated code.) --- ksw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ksw.c b/ksw.c index 9793e5e..92fd1e0 100644 --- a/ksw.c +++ b/ksw.c @@ -267,7 +267,7 @@ kswr_t ksw_i16(kswq_t *q, int tlen, const uint8_t *target, int _o_del, int _e_de h = _mm_load_si128(H0 + slen - 1); // h={2,5,8,11,14,17,-1,-1} in the above example h = _mm_slli_si128(h, 2); for (j = 0; LIKELY(j < slen); ++j) { - h = _mm_adds_epi16(h, *S++); + h = _mm_adds_epi16(h, _mm_load_si128(S++)); e = _mm_load_si128(E + j); h = _mm_max_epi16(h, e); h = _mm_max_epi16(h, f);