Commit 8450e853 authored by Alexander van Heukelum's avatar Alexander van Heukelum Committed by Ingo Molnar

x86, cleanup: fix description of __fls(): __fls(0) is undefined

Ricardo M. Correia spotted that the use of __fls() in fls64() did
not seem to make sense. In fact fls64()'s implementation is fine,
but the description of __fls() was wrong. Fix that.
Reported-by: default avatar"Ricardo M. Correia" <Ricardo.M.Correia@Sun.COM>
Signed-off-by: default avatarAlexander van Heukelum <heukelum@fastmail.fm>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fbdb7da9
...@@ -356,7 +356,7 @@ static inline unsigned long ffz(unsigned long word) ...@@ -356,7 +356,7 @@ static inline unsigned long ffz(unsigned long word)
* __fls: find last set bit in word * __fls: find last set bit in word
* @word: The word to search * @word: The word to search
* *
* Undefined if no zero exists, so code should check against ~0UL first. * Undefined if no set bit exists, so code should check against 0 first.
*/ */
static inline unsigned long __fls(unsigned long word) static inline unsigned long __fls(unsigned long word)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment