]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Noodle: avoid an extra convert instruction
authorWang Xiang W <xiang.w.wang@intel.com>
Fri, 6 Mar 2020 08:24:07 +0000 (03:24 -0500)
committerHong, Yang A <yang.a.hong@intel.com>
Mon, 25 May 2020 13:46:42 +0000 (13:46 +0000)
fixes github issue #221

src/hwlm/noodle_engine_avx2.c

index f10e4a7bc735856188d41d081e3f7927726ed705..5edc646af13e2f81e36f8a648b300ce08c6f685a 100644 (file)
@@ -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);