From: Wang Xiang W Date: Fri, 6 Mar 2020 08:24:07 +0000 (-0500) Subject: Noodle: avoid an extra convert instruction X-Git-Tag: v5.3.0^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f658c4e149ae9bfe259b55397e2b294f6bf60687;p=thirdparty%2Fvectorscan.git Noodle: avoid an extra convert instruction fixes github issue #221 --- 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);