diff options
| author | Tom Musta | 2014-01-07 18:17:50 +0100 |
|---|---|---|
| committer | Peter Maydell | 2014-01-07 20:18:07 +0100 |
| commit | 47a34e009de2f4a99862e71e1d15d178dac5f259 (patch) | |
| tree | c75d20135ee600b346f7a34f20c7ba5d54057fc1 /include/fpu/softfloat.h | |
| parent | softfloat: Fix factor 2 error for scalbn on denormal inputs (diff) | |
| download | qemu-47a34e009de2f4a99862e71e1d15d178dac5f259.tar.gz qemu-47a34e009de2f4a99862e71e1d15d178dac5f259.tar.xz qemu-47a34e009de2f4a99862e71e1d15d178dac5f259.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/softfloat.h')
| -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 ); |
