Re: [PATCH v2 02/19] host-utils: move abs64() to host-utils as uabs64()

2021-08-31 Thread Eduardo Habkost
On Tue, Aug 31, 2021 at 01:39:50PM -0300, Luis Pires wrote: > Move abs64 to host-utils as uabs64, so it can be used elsewhere. > The function was renamed to uabs64 and modified to return an > unsigned value. This avoids the undefined behavior for common > abs implementations, where abs of the most

Re: [PATCH v2 02/19] host-utils: move abs64() to host-utils as uabs64()

2021-08-31 Thread Richard Henderson
On 8/31/21 9:39 AM, Luis Pires wrote: Move abs64 to host-utils as uabs64, so it can be used elsewhere. The function was renamed to uabs64 and modified to return an unsigned value. This avoids the undefined behavior for common abs implementations, where abs of the most negative value is undefined.

[PATCH v2 02/19] host-utils: move abs64() to host-utils as uabs64()

2021-08-31 Thread Luis Pires
Move abs64 to host-utils as uabs64, so it can be used elsewhere. The function was renamed to uabs64 and modified to return an unsigned value. This avoids the undefined behavior for common abs implementations, where abs of the most negative value is undefined. Signed-off-by: Luis Pires --- hw/i38