ffs: rename find_[first|last]_set to find_[lsb|msb]_set

The new names reflect better what the functions do: they find the first
bit set starting from the least or most significant bit, i.e. they find
the least or most significant bit set, in a 32-bit word.

Change-Id: I6f0ee4b543f6f37c2f08f7067e14e039c92a6f6a
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-08-14 17:16:16 -04:00 committed by Anas Nashif
commit 1bab46dca1
7 changed files with 62 additions and 62 deletions

View file

@ -86,7 +86,7 @@ void _ScbNumPriGroupSet(unsigned int n /* number of priorities */
__ASSERT(_IsPowerOfTwo(n) && (n <= 128),
"invalid number of priorities");
set = find_first_set(n);
set = find_lsb_set(n);
reg.val = __scs.scb.aircr.val;