Fix error in initial noodle double final call.

Change-Id: Ie044988f183b47e0b2f1eed3b4bd23de75c3117d
This commit is contained in:
George Wort 2021-06-22 12:34:35 +01:00 committed by Konstantinos Margaritis
parent 5297ed5038
commit d1009e8830
2 changed files with 2 additions and 2 deletions

View 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) {

View 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;