Skip to content
Snippets Groups Projects
Commit 574409f3 authored by Yury Umanets's avatar Yury Umanets
Browse files

- missed part of 16776 (fixes in __fls() for 64 bit case)

parent 98ded536
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,12 @@ static __inline__ unsigned long __fls(long data)
return 0;
#if BITS_PER_LONG == 64
if ((data & 0xFFFFFFFF) == 0)
pos += 32;
if ((data & 0xFFFFFFFF) == 0) {
data <<= 32;
pos -= 32;
}
#endif
if (!(data & 0xFFFF0000u)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment