mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
ARC: bitops: fls/ffs to take int (vs long) per asm-generic defines
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
This commit is contained in:
parent
cea4314790
commit
9d011e1207
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ static inline __attribute__ ((const)) unsigned long __ffs(unsigned long word)
|
|||
* @result: [1-32]
|
||||
* fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
|
||||
*/
|
||||
static inline __attribute__ ((const)) int fls(unsigned long x)
|
||||
static inline __attribute__ ((const)) int fls(unsigned int x)
|
||||
{
|
||||
int n;
|
||||
|
||||
|
@ -141,7 +141,7 @@ static inline __attribute__ ((const)) int __fls(unsigned long x)
|
|||
* ffs = Find First Set in word (LSB to MSB)
|
||||
* @result: [1-32], 0 if all 0's
|
||||
*/
|
||||
static inline __attribute__ ((const)) int ffs(unsigned long x)
|
||||
static inline __attribute__ ((const)) int ffs(unsigned int x)
|
||||
{
|
||||
int n;
|
||||
|
||||
|
|
Loading…
Reference in a new issue