OSDN Git Service

softfloat: Add float32_to_uint64()
authorTom Musta <tommusta@gmail.com>
Tue, 7 Jan 2014 17:17:50 +0000 (17:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jan 2014 19:07:22 +0000 (19:07 +0000)
commit2f18bbf9844ad110e0e69ad22708f37cab1557f6
treee0d83c4b329e6ed0f008ceae1de45537c22a3fc4
parent3c85c37f254bdfaea4e105b5014a287b5cf9514b
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>
fpu/softfloat.c
include/fpu/softfloat.h