Re: [PATCH v2 01/19] host-utils: Fix overflow detection in divu128()

2021-08-31 Thread Richard Henderson
On 8/31/21 9:39 AM, Luis Pires wrote: The previous code didn't detect overflows if the high 64-bit of the dividend were equal to the 64-bit divisor. In that case, 64 bits wouldn't be enough to hold the quotient. Signed-off-by: Luis Pires --- util/host-utils.c | 2 +- 1 file changed, 1 inserti

[PATCH v2 01/19] host-utils: Fix overflow detection in divu128()

2021-08-31 Thread Luis Pires
The previous code didn't detect overflows if the high 64-bit of the dividend were equal to the 64-bit divisor. In that case, 64 bits wouldn't be enough to hold the quotient. Signed-off-by: Luis Pires --- util/host-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/h