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:
parent
1bab46dca1
commit
7710d0e083
3 changed files with 8 additions and 6 deletions
|
@ -40,6 +40,8 @@ ARC-specific nanokernel ffs interface. Included by ARC/arch.h.
|
|||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief find most significant bit set in a 32-bit word
|
||||
|
@ -53,7 +55,7 @@ ARC-specific nanokernel ffs interface. Included by ARC/arch.h.
|
|||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
static ALWAYS_INLINE unsigned int find_msb_set(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
@ -82,7 +84,7 @@ static ALWAYS_INLINE unsigned int find_msb_set(unsigned int op)
|
|||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
static ALWAYS_INLINE unsigned int find_lsb_set(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_lsb_set(uint32_t op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
* @return most significant bit set, 0 if @a op is 0
|
||||
*/
|
||||
|
||||
static ALWAYS_INLINE unsigned int find_msb_set(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
@ -92,7 +92,7 @@ static ALWAYS_INLINE unsigned int find_msb_set(unsigned int op)
|
|||
* @return least significant bit set, 0 if @a op is 0
|
||||
*/
|
||||
|
||||
static ALWAYS_INLINE unsigned int find_lsb_set(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_lsb_set(uint32_t op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue