generic fls64()
Subsystems (2)
Review
Quoted 7 lines
From: Akinobu Mita
Sent: Wednesday, February 01, 2006 03:03(quoted diff) +5
-0+static inline int fls64(__u64 x) +{ + __u32 h = x >> 32; + if (h) + return fls(x) + 32;
Shouldn't this be return fls(h) + 32; ??
^^^
Quoted 12 lines
(quoted diff) +4
-1+ return fls(x); +} + +#endif /* _ASM_GENERIC_BITOPS_FLS64_H_ */ --_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
PATCH 1/1 fix generic_fls64()
Noticed by Rune Torgersen.
fix generic_fls64().tcp_cubic is using fls64().
Signed-off-by Akinobu Mita <[email protected]>
include/linux/bitops.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
include/linux/bitops.h +1 -1
@@ -81,7 +81,7 @@ static inline int generic_fls64(__u64 x) {__u32 h = x >>32 ;if (h) -return fls (x) +32 ; +return fls (h) +32 ;return fls (x); }