OSDN Git Service

fpu: Add rebias bool, value and operation
authorLucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Fri, 5 Aug 2022 14:15:21 +0000 (11:15 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 31 Aug 2022 17:08:05 +0000 (14:08 -0300)
commitc40da5c6fb6dd243e906900de1d22cf20e32a8cd
tree8cb7144ea5d9f025bcc0fb5d574abf5a544046f9
parent0bf4d77e5922128506a3495d72ee9f432726c085
fpu: Add rebias bool, value and operation

Added the possibility of recalculating a result if it overflows or
underflows, if the result overflow and the rebias bool is true then the
intermediate result should have 3/4 of the total range subtracted from
the exponent. The same for underflow but it should be added to the
exponent of the intermediate number instead.

Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220805141522.412864-2-lucas.araujo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
fpu/softfloat-parts.c.inc
fpu/softfloat.c
include/fpu/softfloat-types.h