arc: standardize ffs function names to match other arches
Change-Id: I4f384960f4c6698ef98ecf3941c30f849832135e Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
45a387fc46
commit
91156d9c7a
2 changed files with 11 additions and 11 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
/*
|
||||
DESCRIPTION
|
||||
This library implements nanoFfsMsb() and nanoFfsLsb() which returns the
|
||||
This library implements find_last_set() and find_first_set() which returns the
|
||||
most and least significant bit set respectively.
|
||||
*/
|
||||
|
||||
|
@ -43,8 +43,8 @@ most and least significant bit set respectively.
|
|||
|
||||
/* Exports */
|
||||
|
||||
GTEXT(nanoFfsMsb)
|
||||
GTEXT(nanoFfsLsb)
|
||||
GTEXT(find_last_set)
|
||||
GTEXT(find_first_set)
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -58,7 +58,7 @@ GTEXT(nanoFfsLsb)
|
|||
* @return most significant bit set
|
||||
*/
|
||||
|
||||
SECTION_FUNC(TEXT, nanoFfsMsb)
|
||||
SECTION_FUNC(TEXT, find_last_set)
|
||||
|
||||
/*
|
||||
* The FLS instruction returns the bit number (0-31), and 0 if the operand
|
||||
|
@ -81,7 +81,7 @@ SECTION_FUNC(TEXT, nanoFfsMsb)
|
|||
* @return least significant bit set
|
||||
*/
|
||||
|
||||
SECTION_FUNC(TEXT, nanoFfsLsb)
|
||||
SECTION_FUNC(TEXT, find_first_set)
|
||||
|
||||
/*
|
||||
* The FFS instruction returns the bit number (0-31), and 31 if the operand
|
||||
|
|
|
@ -39,11 +39,11 @@ ARC-specific nanokernel ffs interface. Included by ARC/arch.h.
|
|||
#define _ARCH_ARC_V2_FFS_H_
|
||||
|
||||
#ifdef _ASMLANGUAGE
|
||||
GTEXT(nanoFfsLsb);
|
||||
GTEXT(nanoFfsMsb);
|
||||
GTEXT(find_first_set);
|
||||
GTEXT(find_last_set);
|
||||
#else
|
||||
extern unsigned nanoFfsLsb(unsigned int);
|
||||
extern unsigned nanoFfsMsb(unsigned int);
|
||||
extern unsigned find_first_set(unsigned int);
|
||||
extern unsigned find_last_set(unsigned int);
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -58,7 +58,7 @@ extern unsigned nanoFfsMsb(unsigned int);
|
|||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
static ALWAYS_INLINE unsigned int nanoFfsMsb_inline(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_last_set_inline(unsigned int op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
@ -87,7 +87,7 @@ static ALWAYS_INLINE unsigned int nanoFfsMsb_inline(unsigned int op)
|
|||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
static ALWAYS_INLINE unsigned int nanoFfsLsb_inline(unsigned int op)
|
||||
static ALWAYS_INLINE unsigned int find_first_set_inline(unsigned int op)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue