]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Fix error in initial noodle double final call.
authorGeorge Wort <george.wort@arm.com>
Tue, 22 Jun 2021 11:34:35 +0000 (12:34 +0100)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
Change-Id: Ie044988f183b47e0b2f1eed3b4bd23de75c3117d

src/hwlm/noodle_engine_simd.hpp
src/hwlm/noodle_engine_sve.hpp

index 510f179e8726a6e2984948a0c1e09dd66dcffe83..7a535e8fbd71f6beac02a8e3fb58b76747deedf8 100644 (file)
@@ -108,7 +108,7 @@ hwlm_error_t scanDoubleUnaligned(const struct noodTable *n, const u8 *buf,
                                  SuperVector<S> caseMask, SuperVector<S> mask1, SuperVector<S> mask2, typename SuperVector<S>::movemask_type *lastz1,
                                  const struct cb_info *cbi, size_t len, size_t start, size_t end) {
     const u8 *d = buf + start;
-    DEBUG_PRINTF("start %zu end %zu", start, end);
+    DEBUG_PRINTF("start %zu end %zu\n", start, end);
     const size_t l = end - start;
     assert(l <= S);
     if (!l) {
index 41329737821175b2cce84bd5d5d598c2dde6401c..3c0931a80f5fb0c698f702cb6b80dd98420c0605 100644 (file)
@@ -245,7 +245,7 @@ hwlm_error_t scanDouble(const struct noodTable *n, const u8 *buf, size_t len,
     // Check first position in scalar so as to remove underflow possibilities.
     size_t matchPos = d - buf;
     DEBUG_PRINTF("Test match pos %zu\n", matchPos);
-    RETURN_IF_TERMINATED(final(n, d, len, true, cbi, matchPos));
+    RETURN_IF_TERMINATED(final(n, buf, len, true, cbi, matchPos));
     d += 2;
     if (d >= e) {
         return HWLM_SUCCESS;