mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Fix error in initial noodle double final call.
Change-Id: Ie044988f183b47e0b2f1eed3b4bd23de75c3117d
This commit is contained in:
parent
5297ed5038
commit
d1009e8830
@ -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,
|
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 struct cb_info *cbi, size_t len, size_t start, size_t end) {
|
||||||
const u8 *d = buf + start;
|
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;
|
const size_t l = end - start;
|
||||||
assert(l <= S);
|
assert(l <= S);
|
||||||
if (!l) {
|
if (!l) {
|
||||||
|
@ -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.
|
// Check first position in scalar so as to remove underflow possibilities.
|
||||||
size_t matchPos = d - buf;
|
size_t matchPos = d - buf;
|
||||||
DEBUG_PRINTF("Test match pos %zu\n", matchPos);
|
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;
|
d += 2;
|
||||||
if (d >= e) {
|
if (d >= e) {
|
||||||
return HWLM_SUCCESS;
|
return HWLM_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user