mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 09:21:52 +03:00
noodle: scan using the correct offsets
This commit is contained in:
@@ -174,8 +174,8 @@ hwlm_error_t scanSingleMain(const struct noodTable *n, const u8 *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (end - offset == CHUNKSIZE) {
|
if (end - offset == CHUNKSIZE) {
|
||||||
rv = scanSingleUnaligned(n, buf, len, 0, noCase, caseMask, mask1, cbi,
|
rv = scanSingleUnaligned(n, buf, len, offset, noCase, caseMask, mask1,
|
||||||
offset, end);
|
cbi, offset, end);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,8 +188,8 @@ hwlm_error_t scanSingleMain(const struct noodTable *n, const u8 *buf,
|
|||||||
if (offset != s2Start) {
|
if (offset != s2Start) {
|
||||||
// first scan out to the fast scan starting point
|
// first scan out to the fast scan starting point
|
||||||
DEBUG_PRINTF("stage 1: -> %zu\n", s2Start);
|
DEBUG_PRINTF("stage 1: -> %zu\n", s2Start);
|
||||||
rv = scanSingleUnaligned(n, buf, len, 0, noCase, caseMask, mask1, cbi,
|
rv = scanSingleUnaligned(n, buf, len, offset, noCase, caseMask, mask1,
|
||||||
offset, s2Start);
|
cbi, offset, s2Start);
|
||||||
RETURN_IF_TERMINATED(rv);
|
RETURN_IF_TERMINATED(rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user