ffs: change find_[lsb|msb]_set parameter type to uint32_t

Highlight the fact that find_[lsb|msb]_set operate on a 32-bit word.

Change-Id: I24cee7709ea6497508dbc7f96a7b4d74fa4bc257
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-08-14 17:22:50 -04:00 committed by Anas Nashif
commit 7710d0e083
3 changed files with 8 additions and 6 deletions

View file

@ -114,7 +114,7 @@ static inline __attribute__((always_inline)) void _do_irq_unlock(void)
* after the 'cmovzl', the correct results are yielded.
*/
static ALWAYS_INLINE unsigned int find_lsb_set(unsigned int op)
static ALWAYS_INLINE unsigned int find_lsb_set(uint32_t op)
{
int bitpos;
@ -164,7 +164,7 @@ static ALWAYS_INLINE unsigned int find_lsb_set(unsigned int op)
* after the 'cmovzl', the correct results are yielded.
*/
static ALWAYS_INLINE unsigned int find_msb_set(unsigned int op)
static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op)
{
int bitpos;