mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 18:20:35 +03:00
lookaround:
add 64x8 and 64x16 shufti models add mask64 model expand entry quantity
This commit is contained in:
committed by
Konstantinos Margaritis
parent
e1706c435c
commit
8436f95f24
@@ -201,12 +201,12 @@ const u8 *prepScanBuffer(const struct core_info *ci,
|
||||
} else {
|
||||
// Copy: first chunk from history buffer.
|
||||
assert(overhang <= ci->hlen);
|
||||
copy_upto_32_bytes(tempbuf, ci->hbuf + ci->hlen - overhang,
|
||||
copy_upto_64_bytes(tempbuf, ci->hbuf + ci->hlen - overhang,
|
||||
overhang);
|
||||
// Copy: second chunk from current buffer.
|
||||
size_t copy_buf_len = LONG_LIT_HASH_LEN - overhang;
|
||||
assert(copy_buf_len <= ci->len);
|
||||
copy_upto_32_bytes(tempbuf + overhang, ci->buf, copy_buf_len);
|
||||
copy_upto_64_bytes(tempbuf + overhang, ci->buf, copy_buf_len);
|
||||
// Read from our temporary buffer for the hash.
|
||||
base = tempbuf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user