Commit bf7539ac authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt fls64 to Samba coding conventions

(Imported from SAMBA commit 73414d0ee7bbe371b0f9b275b44ce5854a10b9f2)
parent cee0f8b2
......@@ -183,8 +183,9 @@ static unsigned fls64(uint64_t val)
#endif
uint64_t r = 64;
if (!val)
if (!val) {
return 0;
}
if (!(val & 0xffffffff00000000ull)) {
val <<= 32;
r -= 32;
......
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