diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-01-07 17:19:12 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-01-08 19:07:22 +0000 |
commit | 14c9a07eb9cae3d3bc1d39cc8815dd88337ce07a (patch) | |
tree | 279b563b953d360b5dac46c78c7520bb74572b18 /include | |
parent | c4a1c5e7e2fae28ef3fde2aadf7ec6fed0a5a967 (diff) | |
download | qemu-14c9a07eb9cae3d3bc1d39cc8815dd88337ce07a.zip qemu-14c9a07eb9cae3d3bc1d39cc8815dd88337ce07a.tar.gz qemu-14c9a07eb9cae3d3bc1d39cc8815dd88337ce07a.tar.bz2 |
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')
-rw-r--r-- | include/fpu/softfloat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index a634a4e..83d324a 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. |