qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] rsqrte_f32: No need to copy sign bit.


From: Christophe Lyon
Subject: [Qemu-devel] [PATCH] rsqrte_f32: No need to copy sign bit.
Date: Mon, 3 Oct 2011 16:28:07 +0200

Indeed, the result is known to be always positive.

Signed-off-by: Christophe Lyon <address@hidden>
---
 target-arm/helper.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index d3a3ba2..ff5456c 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -3039,8 +3039,7 @@ float32 HELPER(rsqrte_f32)(float32 a, CPUState *env)
 
     val64 = float64_val(f64);
 
-    val = ((val64 >> 63)  & 0x80000000)
-        | ((result_exp & 0xff) << 23)
+    val = ((result_exp & 0xff) << 23)
         | ((val64 >> 29)  & 0x7fffff);
     return make_float32(val);
 }
-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]