qemu/fpu
Bharata B Rao 9ee6f678f4 softfloat: Add round-to-odd rounding mode
Power ISA 3.0 introduces a few quadruple precision floating point
instructions that support round-to-odd rounding mode. The
round-to-odd mode is explained as under:

Let Z be the intermediate arithmetic result or the operand of a convert
operation. If Z can be represented exactly in the target format, the
result is Z. Otherwise the result is either Z1 or Z2 whichever is odd.
Here Z1 and Z2 are the next larger and smaller numbers representable
in the target format respectively.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-02-22 11:28:28 +11:00
..
softfloat-macros.h fpu: Use plain 'int' rather than 'int_fast16_t' for exponents 2016-02-19 16:27:22 +00:00
softfloat-specialize.h softfloat: Fix the default qNAN for target-ppc 2017-01-31 10:10:14 +11:00
softfloat.c softfloat: Add round-to-odd rounding mode 2017-02-22 11:28:28 +11:00