[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 136/147] softfloat: Implement uint64_to_float128
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 136/147] softfloat: Implement uint64_to_float128 |
Date: |
Thu, 27 Sep 2012 18:13:05 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
fpu/softfloat.c | 6 ++++++
fpu/softfloat.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 45f105a..8df3a32 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -1337,6 +1337,12 @@ float128 int64_to_float128( int64 a STATUS_PARAM )
}
+float128 uint64_to_float128( uint64 a STATUS_PARAM )
+{
+ if ( a == 0 ) return packFloat128( 0, 0, 0, 0 );
+ return normalizeRoundAndPackFloat128( 0, 0x406E, a, 0 STATUS_VAR );
+}
+
/*----------------------------------------------------------------------------
| Returns the result of converting the single-precision floating-point value
| `a' to the 32-bit two's complement integer format. The conversion is
diff --git a/fpu/softfloat.h b/fpu/softfloat.h
index d8999b3..ee925ad 100644
--- a/fpu/softfloat.h
+++ b/fpu/softfloat.h
@@ -237,6 +237,7 @@ float64 int64_to_float64( int64 STATUS_PARAM );
float64 uint64_to_float64( uint64 STATUS_PARAM );
floatx80 int64_to_floatx80( int64 STATUS_PARAM );
float128 int64_to_float128( int64 STATUS_PARAM );
+float128 uint64_to_float128( uint64 STATUS_PARAM );
/*----------------------------------------------------------------------------
| Software half-precision conversion routines.
--
1.7.11.4
- [Qemu-devel] [PATCH 127/147] target-s390: Implement LOAD ON CONDITION, (continued)
- [Qemu-devel] [PATCH 127/147] target-s390: Implement LOAD ON CONDITION, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 128/147] target-s390: Implement STORE ON CONDITION, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 129/147] target-s390: Implement CONVERT TO LOGICAL, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 130/147] target-s390: Implement CONVERT FROM LOGICAL, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 131/147] target-s390: Implement POPCNT, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 132/147] target-s390: Implement CPSDR, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 133/147] target-s390: Check insn operand specifications, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 134/147] target-s390: Implement LCDFR, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 135/147] softfloat: Fix uint64_to_float64, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 136/147] softfloat: Implement uint64_to_float128,
Richard Henderson <=
- [Qemu-devel] [PATCH 137/147] target-s390: Use uint64_to_float128, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 138/147] target-s390: Implement SET ROUNDING MODE, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 139/147] target-s390: Implement LOAD/SET FP AND SIGNAL, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 140/147] target-s390: Fix cpu_clone_regs, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 141/147] target-s390: Optimize XC, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 142/147] target-s390: Optmize emitting discards, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 143/147] target-s390: Tidy comparisons, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 144/147] target-s390: Optimize ADDU/SUBU CC testing, Richard Henderson, 2012/09/27
- [Qemu-devel] [PATCH 145/147] target-s390: Optimize ADDC/SUBB, Richard Henderson, 2012/09/27