mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 07:23:32 +02:00
We already have my_ffsl() to find the lowest bit set in a word, and this patch implements the search for the highest bit set in a word. On x86 it uses the bsr instruction and on other architectures it uses an efficient implementation.