HomeFreeBSD

radix_trie: simplify trimkey functions

Description

radix_trie: simplify trimkey functions

Replacing a branch and two shifts with a single masking operation saves 64 bytes the pair of functions lookup_le and lookup_ge on amd64. Refresh the associated comments.
Reviewed by: alc
Differential Revision: https://reviews.freebsd.org/D40722

Details

Provenance
dougmAuthored on Jun 25 2023, 5:49 PM
Reviewer
alc
Differential Revision
D40722: radix_trie: simplify trimkey functions
Parents
rG9cbc371c8af7: libcrypto: build nistp* on all little-endian 64-bit targets
Branches
Unknown
Tags
Unknown