diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-29 16:17:29 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-06-11 00:25:06 +0100 |
commit | 747eb78baa8803c58a1063e5da5b7f1e11b20eeb (patch) | |
tree | 03f2b63d9043ebfcd2c3f0ed8c7f05a2b7d96880 /include/exec/ram_addr.h | |
parent | adf9d70b0dd754b4626fd0ae2b52014060cf7ba4 (diff) | |
download | qemu-747eb78baa8803c58a1063e5da5b7f1e11b20eeb.zip |
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 <ncopa@alpinelinux.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec/ram_addr.h')
0 files changed, 0 insertions, 0 deletions