mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 01:12:15 +03:00
fdr/teddy: simplify computing of confirm base
This commit is contained in:
committed by
Matthew Barr
parent
06bafae81d
commit
b126cbf556
@@ -244,9 +244,8 @@ const m128 *getMaskBase(const struct Teddy *teddy) {
|
||||
}
|
||||
|
||||
static really_inline
|
||||
const u32 *getConfBase(const struct Teddy *teddy, u8 numMask) {
|
||||
return (const u32 *)((const u8 *)teddy + ROUNDUP_CL(sizeof(struct Teddy)) +
|
||||
ROUNDUP_CL(numMask * 32));
|
||||
const u32 *getConfBase(const struct Teddy *teddy) {
|
||||
return (const u32 *)((const u8 *)teddy + teddy->confOffset);
|
||||
}
|
||||
|
||||
#endif /* TEDDY_RUNTIME_COMMON_H_ */
|
||||
|
||||
Reference in New Issue
Block a user