[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_5
From: |
Christophe Lyon |
Subject: |
[Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants. |
Date: |
Mon, 21 Feb 2011 11:59:33 +0100 |
These two constants will be used by helper functions such as recpe_f32
and rsqrte_f32.
Signed-off-by: Christophe Lyon <address@hidden>
---
target-arm/helper.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index 7f63a28..30c1809 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -2687,6 +2687,11 @@ float32 HELPER(rsqrts_f32)(float32 a, float32 b,
CPUState *env)
/* NEON helpers. */
+/* Constants 256 and 512 are used in some helpers; we avoid relying on
+ * int->float conversions at run-time. */
+#define float64_256 make_float64(0x4070000000000000LL)
+#define float64_512 make_float64(0x4080000000000000LL)
+
/* TODO: The architecture specifies the value that the estimate functions
should return. We return the exact reciprocal/root instead. */
float32 HELPER(recpe_f32)(float32 a, CPUState *env)
--
1.7.2.3
- [Qemu-devel] [PATCH v5 0/5] ARM: fix Neon VRECPE and VRSQRTE instructions., Christophe Lyon, 2011/02/21
- [Qemu-devel] [PATCH 3/5] target-arm: Introduce float64_256 and float64_512 constants.,
Christophe Lyon <=
- [Qemu-devel] [PATCH 5/5] target-arm: fix support for VRSQRTE., Christophe Lyon, 2011/02/21
- [Qemu-devel] [PATCH 4/5] target-arm: fix support for VRECPE., Christophe Lyon, 2011/02/21
- [Qemu-devel] [PATCH 2/5] softfloat: add _set_sign(), _infinity and _half for 32 and 64 bits floats., Christophe Lyon, 2011/02/21
- [Qemu-devel] [PATCH 1/5] softfloat: move all default NaN definitions to softfloat.h., Christophe Lyon, 2011/02/21