diff options
author | Tom Musta | 2014-01-07 18:17:50 +0100 |
---|---|---|
committer | Peter Maydell | 2014-01-08 20:07:22 +0100 |
commit | 2f18bbf9844ad110e0e69ad22708f37cab1557f6 (patch) | |
tree | e0d83c4b329e6ed0f008ceae1de45537c22a3fc4 /include/fpu | |
parent | softfloat: Fix factor 2 error for scalbn on denormal inputs (diff) | |
download | qemu-2f18bbf9844ad110e0e69ad22708f37cab1557f6.tar.gz qemu-2f18bbf9844ad110e0e69ad22708f37cab1557f6.tar.xz qemu-2f18bbf9844ad110e0e69ad22708f37cab1557f6.zip |
softfloat: Add float32_to_uint64()
This patch adds the float32_to_uint64() routine, which converts a
32-bit floating point number to an unsigned 64 bit number.
This contribution can be licensed under either the softfloat-2a or -2b
license.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: removed harmless but silly int64_t casts]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/fpu')
-rw-r--r-- | include/fpu/softfloat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 78b165670d..eb81c3b0cc 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -295,6 +295,7 @@ int32 float32_to_int32_round_to_zero( float32 STATUS_PARAM ); uint32 float32_to_uint32( float32 STATUS_PARAM ); uint32 float32_to_uint32_round_to_zero( float32 STATUS_PARAM ); int64 float32_to_int64( float32 STATUS_PARAM ); +uint64 float32_to_uint64(float32 STATUS_PARAM); int64 float32_to_int64_round_to_zero( float32 STATUS_PARAM ); float64 float32_to_float64( float32 STATUS_PARAM ); floatx80 float32_to_floatx80( float32 STATUS_PARAM ); |