summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTom Musta2014-01-07 18:17:50 +0100
committerPeter Maydell2014-01-07 20:18:07 +0100
commit47a34e009de2f4a99862e71e1d15d178dac5f259 (patch)
treec75d20135ee600b346f7a34f20c7ba5d54057fc1 /include
parentsoftfloat: Fix factor 2 error for scalbn on denormal inputs (diff)
downloadqemu-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')
-rw-r--r--include/fpu/softfloat.h1
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 );