From f658c4e149ae9bfe259b55397e2b294f6bf60687 Mon Sep 17 00:00:00 2001 From: Wang Xiang W Date: Fri, 6 Mar 2020 03:24:07 -0500 Subject: [PATCH] Noodle: avoid an extra convert instruction fixes github issue #221 --- src/hwlm/noodle_engine_avx2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwlm/noodle_engine_avx2.c b/src/hwlm/noodle_engine_avx2.c index f10e4a7b..5edc646a 100644 --- a/src/hwlm/noodle_engine_avx2.c +++ b/src/hwlm/noodle_engine_avx2.c @@ -210,7 +210,7 @@ hwlm_error_t scanDoubleFast(const struct noodTable *n, const u8 *buf, const u8 *d = buf + start, *e = buf + end; DEBUG_PRINTF("start %zu end %zu \n", start, end); assert(d < e); - u8 lastz0 = 0; + u32 lastz0 = 0; for (; d < e; d += 32) { m256 v = noCase ? and256(load256(d), caseMask) : load256(d);