HomeFreeBSD

radix_trie: eliminate iteration in keydiff

Description

radix_trie: eliminate iteration in keydiff

Use flsll(), instead of a loop, to find where two keys differ, and
then arithmetic to transform that to a trie level.
Approved by: alc, markj
Differential Revision: https://reviews.freebsd.org/D40585

Details

Provenance
dougmAuthored on Jun 20 2023, 4:30 PM
Differential Revision
D40585: radix_trie: eliminate iteration in keydiff
Parents
rGafb001df81b4: bsnmpd snmp_bridge: Remove set but unused variable.
Branches
Unknown
Tags
Unknown