mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
e665cf72fe
commit
e2041f4d5d
3 changed files with 112 additions and 0 deletions
|
@ -751,6 +751,9 @@ int16_t float64_to_int16_round_to_zero(float64, float_status *status);
|
|||
int32_t float64_to_int32_round_to_zero(float64, float_status *status);
|
||||
int64_t float64_to_int64_round_to_zero(float64, float_status *status);
|
||||
|
||||
int32_t float64_to_int32_modulo(float64, FloatRoundMode, float_status *status);
|
||||
int64_t float64_to_int64_modulo(float64, FloatRoundMode, float_status *status);
|
||||
|
||||
uint16_t float64_to_uint16_scalbn(float64, FloatRoundMode, int, float_status *);
|
||||
uint32_t float64_to_uint32_scalbn(float64, FloatRoundMode, int, float_status *);
|
||||
uint64_t float64_to_uint64_scalbn(float64, FloatRoundMode, int, float_status *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue