|
From: | Juan Quintela |
Subject: | Re: [PATCH RESEND v2 1/2] migration/xbzrle: use ctz64 to avoid undefined result |
Date: | Wed, 15 Mar 2023 21:56:36 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Matheus Tavares Bernardino <quic_mathbern@quicinc.com> wrote: > __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: Juan Quintela <quintela@redhat.com> queued.
[Prev in Thread] | Current Thread | [Next in Thread] |