diff options
| author | Alex Bennée | 2017-11-29 11:21:25 +0100 |
|---|---|---|
| committer | Alex Bennée | 2018-02-21 11:21:16 +0100 |
| commit | dbe4d53a590f5689772b683984588b3cf6df163e (patch) | |
| tree | 76001fb18b19765ba9c2bb7ad9be3992ba5bf17c /include/fpu | |
| parent | fpu/softfloat: re-factor muladd (diff) | |
| download | qemu-dbe4d53a590f5689772b683984588b3cf6df163e.tar.gz qemu-dbe4d53a590f5689772b683984588b3cf6df163e.tar.xz qemu-dbe4d53a590f5689772b683984588b3cf6df163e.zip | |
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>
Diffstat (limited to 'include/fpu')
| -rw-r--r-- | include/fpu/softfloat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 65bc7442d2..4650758c23 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -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); |
