]> git.proxmox.com Git - mirror_qemu.git/commit
softfloat: Move the binary point to the msb
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 7 Nov 2020 19:19:32 +0000 (11:19 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 16 May 2021 12:13:51 +0000 (07:13 -0500)
commite99c43735a413e2566b4ad36eeda6dd061a9b939
tree0e157940b3c7c2e7b175004dd3f7c9005f9840fe
parentf2b84b9edb0788eb25902c4ca268476b42fceb20
softfloat: Move the binary point to the msb

Rather than point the binary point at msb-1, put it at the msb.
Use uadd64_overflow to detect when addition overflows instead
of DECOMPOSED_OVERFLOW_BIT.

This reduces the number of special cases within the code, such
as shifting an int64_t either left or right during conversion.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat.c