diff options
author | Stefano Brivio <[email protected]> | 2020-03-07 17:52:34 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2020-03-15 15:27:43 +0100 |
commit | bf3e58392394c8ead0441efe0035abbfcaf472a2 (patch) | |
tree | 14c111b4736bb2fe0386f7818da3b3c9471bda01 /tools/lib/api/debug.c | |
parent | 4051f43116cdc7dc4df729d4ef80d1ac46a1297f (diff) |
nft_set_pipapo: Prepare for vectorised implementation: alignment
SIMD vector extension sets require stricter alignment than native
instruction sets to operate efficiently (AVX, NEON) or for some
instructions to work at all (AltiVec).
Provide facilities to define arbitrary alignment for lookup tables
and scratch maps. By defining byte alignment with NFT_PIPAPO_ALIGN,
lt_aligned and scratch_aligned pointers become available.
Additional headroom is allocated, and pointers to the possibly
unaligned, originally allocated areas are kept so that they can
be freed.
Signed-off-by: Stefano Brivio <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions