softfloat: Add 16 bit integer to float conversions
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Jan 2014 17:17:49 +0000 (17:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Jan 2014 19:18:07 +0000 (19:18 +0000)
commit44e09132cae159ce1e2f3d0aebd62c8298224a6d
tree02c6b1b28bf428689ab4df94b0d3638c4ce708ed
parente0a2db7128626a795c3657ffcaff40514e998e2f
softfloat: Add 16 bit integer to float conversions

Add the float to 16 bit integer conversion routines. These can be
trivially implemented in terms of the int32_to_float* routines, but
providing them makes our API more symmetrical and can simplify callers.

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