]> git.proxmox.com Git - mirror_qemu.git/commit - fpu/softfloat.c
softfloat: Refactor code handling various rounding modes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Jan 2014 17:19:12 +0000 (17:19 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jan 2014 19:07:22 +0000 (19:07 +0000)
commitdc355b764de890e1b5872d0b402dccfd9a9b5286
tree4aa85328708f90d546e9d1fdf324d27725a1477f
parent14c9a07eb9cae3d3bc1d39cc8815dd88337ce07a
softfloat: Refactor code handling various rounding modes

Refactor the code in various functions which calculates rounding
increments given the current rounding mode, so that instead of a
set of nested if statements we have a simple switch statement.
This will give us a clean place to add the case for the new
tiesAway rounding mode.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
fpu/softfloat.c