mirror of https://github.com/proxmox/mirror_qemu
bitops: Inline bitops_flsl
This is the only remaining user. Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>master
parent
14e534265a
commit
4932398fac
|
@ -133,7 +133,7 @@ unsigned long find_last_bit(const unsigned long *addr, unsigned long size)
|
||||||
tmp = addr[--words];
|
tmp = addr[--words];
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
found:
|
found:
|
||||||
return words * BITS_PER_LONG + bitops_flsl(tmp);
|
return words * BITS_PER_LONG + BITS_PER_LONG - 1 - clzl(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue