mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
bitops: Use non-bitops ctzl
The use of ctz has already eliminated zero, and thus the difference in edge conditions between the two routines is irrelevant. Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
18331e7c18
commit
265ce4a5ca
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ found_first:
|
||||||
return result + size; /* Nope. */
|
return result + size; /* Nope. */
|
||||||
}
|
}
|
||||||
found_middle:
|
found_middle:
|
||||||
return result + bitops_ctzl(tmp);
|
return result + ctzl(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue