diff options
author | 2023-03-13 15:58:19 -0300 | |
---|---|---|
committer | 2023-03-16 16:07:07 +0100 | |
commit | d84a78d15d3af9ff28ceec6906a4b101bd545b55 (patch) | |
tree | 68b03cf41f925795e8ca59e711326959e3313664 /scripts/coverage/compare_gcov_json.py | |
parent | migration/rdma: Fix return-path case (diff) | |
download | qemu-d84a78d15d3af9ff28ceec6906a4b101bd545b55.tar.xz qemu-d84a78d15d3af9ff28ceec6906a4b101bd545b55.zip |
migration/xbzrle: use ctz64 to avoid undefined result
__builtin_ctzll() produces undefined results when the argument is 0.
This can be seen through test-xbzrle, which produces the following
warning:
../migration/xbzrle.c:265: runtime error: passing zero to ctz(), which is not a valid argument
Replace __builtin_ctzll() with our ctz64() wrapper which properly
handles 0.
Signed-off-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions