commit | d87a67f9bc422bf41b6b81c1e99d9aebbbc18d8e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Mar 05 12:04:55 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 07 13:48:04 2019 +0100 |
tree | f58226481015c874ac88ddf3a41009972299fac8 | |
parent | fc630bd3735f6d0f0a30de4b1fa8fb192d2b186d [diff] |
MINOR: tools: implement my_flsl() 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.