aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/host-utils.h
diff options
context:
space:
mode:
authorLuis Pires <luis.pires@eldorado.org.br>2021-09-10 08:26:03 -0300
committerDavid Gibson <david@gibson.dropbear.id.au>2021-09-29 19:37:38 +1000
commit06c0259a086f0f4ddd57a14ba811bba0b9e45130 (patch)
tree35bd44452d7511b0f06fa3152ad67b35738a4216 /include/qemu/host-utils.h
parent6b54a31bf7b403672a798b6443b1930ae6c74dea (diff)
downloadqemu-06c0259a086f0f4ddd57a14ba811bba0b9e45130.zip
qemu-06c0259a086f0f4ddd57a14ba811bba0b9e45130.tar.gz
qemu-06c0259a086f0f4ddd57a14ba811bba0b9e45130.tar.bz2
host-utils: Fix overflow detection in divu128()
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 <luis.pires@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210910112624.72748-2-luis.pires@eldorado.org.br> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/qemu/host-utils.h')
0 files changed, 0 insertions, 0 deletions