mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fdr_confirm: start FDRConfirm structs at cacheline
This commit is contained in:
parent
4f32a167d5
commit
549062ec2b
@ -364,14 +364,15 @@ setupFullConfs(const vector<hwlmLiteral> &lits,
|
||||
}
|
||||
|
||||
u32 nBuckets = eng.getNumBuckets();
|
||||
u32 totalConfSwitchSize = nBuckets * sizeof(u32);
|
||||
u32 totalSize = ROUNDUP_16(totalConfSwitchSize + totalConfirmSize);
|
||||
u32 totalConfSwitchSize = ROUNDUP_CL(nBuckets * sizeof(u32));
|
||||
u32 totalSize = totalConfSwitchSize + totalConfirmSize;
|
||||
|
||||
auto buf = make_zeroed_bytecode_ptr<u8>(totalSize, 64);
|
||||
assert(buf); // otherwise would have thrown std::bad_alloc
|
||||
|
||||
u32 *confBase = (u32 *)buf.get();
|
||||
u8 *ptr = buf.get() + totalConfSwitchSize;
|
||||
assert(ISALIGNED_CL(ptr));
|
||||
|
||||
for (const auto &m : bc2Conf) {
|
||||
const BucketIndex &idx = m.first;
|
||||
|
Loading…
x
Reference in New Issue
Block a user