softfloat: Add float to 16bit integer conversions.
authorWill Newton <will.newton@linaro.org>
Tue, 7 Jan 2014 17:17:48 +0000 (17:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jan 2014 19:07:22 +0000 (19:07 +0000)
commitf581bf5474d2319ca37484eb63208017ac96ce0a
treef05a54d2477f6cbf9986797ea6f44cccfb58a0e0
parent38970efafdfa8a992c177563c4f0d77062b88fd9
softfloat: Add float to 16bit integer conversions.

ARMv8 requires support for converting 32 and 64bit floating point
values to signed and unsigned 16bit integers.

Signed-off-by: Will Newton <will.newton@linaro.org>
[PMM: updated not to incorrectly set Inexact for Invalid inputs]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
fpu/softfloat.c
include/fpu/softfloat.h