summaryrefslogtreecommitdiffstats
path: root/include/fpu/softfloat.h
diff options
context:
space:
mode:
authorPeter Maydell2014-01-07 18:19:12 +0100
committerPeter Maydell2014-01-07 20:18:08 +0100
commit7b378119bd67609f25bd78b714d0fab922600f40 (patch)
tree152831be64d6ce27158b860aba21ee7dbd942e33 /include/fpu/softfloat.h
parentsoftfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal (diff)
downloadqemu-7b378119bd67609f25bd78b714d0fab922600f40.tar.gz
qemu-7b378119bd67609f25bd78b714d0fab922600f40.tar.xz
qemu-7b378119bd67609f25bd78b714d0fab922600f40.zip
softfloat: Add float16 <=> float64 conversion functions
Add the conversion functions float16_to_float64() and float64_to_float16(), which will be needed for the ARM A64 instruction set. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/fpu/softfloat.h')
-rw-r--r--include/fpu/softfloat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
index a634a4ebff..83d324aca8 100644
--- a/include/fpu/softfloat.h
+++ b/include/fpu/softfloat.h
@@ -298,6 +298,8 @@ INLINE float64 uint16_to_float64(uint16_t v STATUS_PARAM)
*----------------------------------------------------------------------------*/
float16 float32_to_float16( float32, flag STATUS_PARAM );
float32 float16_to_float32( float16, flag STATUS_PARAM );
+float16 float64_to_float16(float64 a, flag ieee STATUS_PARAM);
+float64 float16_to_float64(float16 a, flag ieee STATUS_PARAM);
/*----------------------------------------------------------------------------
| Software half-precision operations.