Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96430
b: refs/heads/master
c: ddc0d00
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed May 12, 2008
1 parent cb46b4b commit 24428a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcd84f2fca49166dab2dba259eca6e633585763f
refs/heads/master: ddc0d009947bf8645fa3543f4532063a787202da
9 changes: 2 additions & 7 deletions trunk/include/asm-mips/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *
* Return the bit position (0..63) of the most significant 1 bit in a word
* Returns -1 if no 1 bit exists
*/
static inline int __ilog2(unsigned long x)
static inline unsigned long __fls(unsigned long x)
{
int lz;

Expand Down Expand Up @@ -593,11 +593,6 @@ static inline int __ilog2(unsigned long x)
return 63 - lz;
}

static inline unsigned long __fls(unsigned long x)
{
return __ilog2(x);
}

/*
* __ffs - find first bit in word.
* @word: The word to search
Expand All @@ -607,7 +602,7 @@ static inline unsigned long __fls(unsigned long x)
*/
static inline unsigned long __ffs(unsigned long word)
{
return __ilog2(word & -word);
return __fls(word & -word);
}

/*
Expand Down

0 comments on commit 24428a5

Please sign in to comment.