fpu/softfloat: re-factor round_to_int
commitdbe4d53a590f5689772b683984588b3cf6df163e
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 29 Nov 2017 10:21:25 +0000 (29 10:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 21 Feb 2018 10:21:16 +0000 (21 10:21 +0000)
tree76001fb18b19765ba9c2bb7ad9be3992ba5bf17c
parentd446830a3aac33e7221e361dad3ab1e1892646cb
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>
fpu/softfloat.c
include/fpu/softfloat.h