mirror of https://github.com/xemu-project/xemu.git
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
|
@ -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…
Reference in New Issue