fpu: Add float64_to_int{32,64}_modulo
commite2041f4d5de01cb03b52908d36e9602b8c4a2479
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 27 May 2023 14:19:07 +0000 (27 07:19 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Jul 2023 06:26:54 +0000 (1 08:26 +0200)
tree400f8bcf2d1326b8099154fbc07c8dccfea360c6
parente665cf72fe6357945fdbecf747dac58c0c7c7c66
fpu: Add float64_to_int{32,64}_modulo

Add versions of float64_to_int* which do not saturate the result.

Reviewed-by: Christoph Muellner <christoph.muellner@vrull.eu>
Tested-by: Christoph Muellner <christoph.muellner@vrull.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230527141910.1885950-2-richard.henderson@linaro.org>
fpu/softfloat-parts.c.inc
fpu/softfloat.c
include/fpu/softfloat.h