mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
fpu/softfloat: re-factor round_to_int
We can now add float16_round_to_int and use the common round_decomposed and canonicalize functions to have a single implementation for float16/32/64 round_to_int functions. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d446830a3a
commit
dbe4d53a59
2 changed files with 146 additions and 174 deletions
|
@ -237,6 +237,7 @@ float64 float16_to_float64(float16 a, flag ieee, float_status *status);
|
|||
| Software half-precision operations.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
float16 float16_round_to_int(float16, float_status *status);
|
||||
float16 float16_add(float16, float16, float_status *status);
|
||||
float16 float16_sub(float16, float16, float_status *status);
|
||||
float16 float16_mul(float16, float16, float_status *status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue