Re: [PATCH 1/6] host-utils: fix ssub32/64_saturate return type and clamp direction
Pierrick Bouvier <[email protected]> Wed, 5 Aug 2026 12:24:02 -0700
| Newsgroups | gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
On 8/5/2026 9:52 AM, Brian Cain wrote: > ssub32_saturate() and ssub64_saturate() were declared to return bool > instead of int32_t/int64_t, and clamped to the wrong bound on overflow. > > Signed-off-by: Brian Cain <[email protected]> > --- > include/qemu/host-utils.h | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > Reviewed-by: Pierrick Bouvier <[email protected]>