lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] asm-generic/bitops/fls64.h
bugfix in fls64 on a big endian systems(against 2.6.25).

Signed-off-by: Nickolay Vinogradov <nickolay@protei.ru>

--

diff --git a/include/asm-generic/bitops/fls64.h
b/include/asm-generic/bitops/fls64.h
index 1b6b17c..2eedb6f 100644
--- a/include/asm-generic/bitops/fls64.h
+++ b/include/asm-generic/bitops/fls64.h
@@ -8,7 +8,7 @@ static inline int fls64(__u64 x)
__u32 h = x >> 32;
if (h)
return fls(h) + 32;
- return fls(x);
+ return fls((__u32)x);
}

#endif /* _ASM_GENERIC_BITOPS_FLS64_H_ */
--
Nickolay Vinogradov
Protei Research and Development Center
St.Petersburg, 194044, Russia
Tel.: +7 812 449 47 27


\
 
 \ /
  Last update: 2008-05-04 21:19    [W:0.179 / U:2.228 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site