softfloat: Revert and reimplement remaining portions of 75d62a5856 and 3430b0be36
Revert the remaining portions of commits75d62a5856and3430b0be36which 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 commitsfb3ea83aaand0a87a3107dso 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 <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1421073508-23909-3-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
a7d1ac78e0
commit
6bb8e0f130
2 changed files with 67 additions and 37 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue