From 6bb8e0f130bd4aecfe835a0caa94390fa2235fde Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 12 Jan 2015 14:38:26 +0000 Subject: softfloat: Revert and reimplement remaining portions of 75d62a5856 and 3430b0be36f Revert the remaining portions of commits 75d62a5856 and 3430b0be36f which are under a SoftFloat-2b license, ie the functions uint64_to_float32() and uint64_to_float64(). (The float64_to_uint64() and float64_to_uint64_round_to_zero() functions were completely rewritten in commits fb3ea83aa and 0a87a3107d so can stay.) Reimplement from scratch the uint64_to_float64() and uint64_to_float32() conversion functions. [This is a mechanical squashing together of two separate "revert" and "reimplement" patches.] Signed-off-by: Peter Maydell Reviewed-by: Paolo Bonzini Message-id: 1421073508-23909-3-git-send-email-peter.maydell@linaro.org --- include/fpu/softfloat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/fpu/softfloat.h') diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 4da5778..b3c710a 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -273,11 +273,11 @@ float64 uint32_to_float64(uint32_t STATUS_PARAM); floatx80 int32_to_floatx80(int32_t STATUS_PARAM); float128 int32_to_float128(int32_t STATUS_PARAM); float32 int64_to_float32(int64_t STATUS_PARAM); -float32 uint64_to_float32(uint64_t STATUS_PARAM); float64 int64_to_float64(int64_t STATUS_PARAM); -float64 uint64_to_float64(uint64_t STATUS_PARAM); floatx80 int64_to_floatx80(int64_t STATUS_PARAM); float128 int64_to_float128(int64_t STATUS_PARAM); +float32 uint64_to_float32(uint64_t STATUS_PARAM); +float64 uint64_to_float64(uint64_t STATUS_PARAM); float128 uint64_to_float128(uint64_t STATUS_PARAM); /* We provide the int16 versions for symmetry of API with float-to-int */ -- cgit v1.1