Skip to content
Commit 03d9f636 authored by Peter Mitsis's avatar Peter Mitsis Committed by Henrik Brix Andersen
Browse files

arch: Simplify find_lsb_set()



Rather than testing each bit until the lowest set bit is found, we can
massage the input parameter to easily clear all bits except the lowest
set bit. When only one bit is set, both find_lsb_set() and find_msb_set()
return the same value.

Signed-off-by: default avatarPeter Mitsis <peter.mitsis@intel.com>
parent 3c092f92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment