]> Git Repo - qemu.git/commit - hw/virtio/vhost.c
vhost: replace ffsl with ctzl
authorNatanael Copa <[email protected]>
Tue, 29 Apr 2014 14:17:29 +0000 (16:17 +0200)
committerPeter Maydell <[email protected]>
Tue, 10 Jun 2014 23:25:06 +0000 (00:25 +0100)
commit747eb78baa8803c58a1063e5da5b7f1e11b20eeb
tree03f2b63d9043ebfcd2c3f0ed8c7f05a2b7d96880
parentadf9d70b0dd754b4626fd0ae2b52014060cf7ba4
vhost: replace ffsl with ctzl

Avoid using the GNU extesion ffsl which is not implemented in musl libc.

The atomic_xchg() means we know that vhost_log_chunk_t will never be
larger than the 'long' type, so ctzl() is always sufficient.

See also commit fbeadf50 (bitops: unify bitops_ffsl with the one in
host-utils.h, call it bitops_ctzl) on why ctzl should be used instead
of ffsl.

Signed-off-by: Natanael Copa <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/virtio/vhost.c
This page took 0.025717 seconds and 4 git commands to generate.