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.
Signed-off-by: Luis Pires<luis.pi...@eldorado.org.br>
---
hw/i386/kvm/i8254.c | 7 +------
include/qemu/host-utils.h | 8 ++++++++
2 files changed, 9 insertions(+), 6 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~