mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-01 22:25:42 +03:00
fdr/teddy: simplify computing of confirm base
This commit is contained in:
committed by
Matthew Barr
parent
06bafae81d
commit
b126cbf556
@@ -335,6 +335,7 @@ bytecode_ptr<FDR> TeddyCompiler::build() {
|
||||
// Write confirm structures.
|
||||
u8 *ptr = teddy_base + headerSize + maskLen;
|
||||
assert(ISALIGNED_CL(ptr));
|
||||
teddy->confOffset = verify_u32(ptr - teddy_base);
|
||||
memcpy(ptr, confirmTable.get(), confirmTable.size());
|
||||
ptr += ROUNDUP_CL(confirmTable.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user