softfloat: Add float64r32 arithmetic routines
commit42636fb923de0598104858d886c6f0acdbeb21b5
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Dec 2021 16:57:15 +0000 (17 17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:15 +0000 (17 17:57 +0100)
treed41efd284306e413b2e66790d845fb0ddac33ebc
parent8ea0b1408e680ecd08a48c51fb1e4d0ec8cbdc15
softfloat: Add float64r32 arithmetic routines

These variants take a float64 as input, compute the result to
infinite precision (as we do with FloatParts), round the result
to the precision and dynamic range of float32, and then return
the result in the format of float64.

This is the operation PowerPC requires for its float32 operations.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211119160502.17432-28-richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
fpu/softfloat.c
include/fpu/softfloat.h