qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 098/111] m68k: use exp2l() to compute exp2_FP0()


From: Bryce Lanham
Subject: [Qemu-devel] [PATCH 098/111] m68k: use exp2l() to compute exp2_FP0()
Date: Wed, 17 Aug 2011 15:53:29 -0500

From: Laurent Vivier <address@hidden>

Signed-off-by: Laurent Vivier <address@hidden>
---
 target-m68k/helper.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index d4364f7..979c8e5 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -1456,17 +1456,17 @@ void HELPER(exp_FP0)(CPUState *env)
 
 void HELPER(exp2_FP0)(CPUState *env)
 {
-    float32 res;
     floatx80 f;
+    long double res;
 
     f = FP0_to_floatx80(env);
+
     DBG_FPUH("exp2_FP0 %Lg", floatx80_to_ldouble(f));
 
-    res = float32_exp2(floatx80_to_float32(f, &env->fp_status),
-                       &env->fp_status);
-    DBG_FPU(" = %f\n", FLOAT(res));
+    res = exp2l(floatx80_to_ldouble(f));
 
-    floatx80_to_FP0(env, float32_to_floatx80(res, &env->fp_status));
+    DBG_FPU(" = %Lg\n", res);
+    floatx80_to_FP0(env, ldouble_to_floatx80(res));
 }
 
 void HELPER(exp10_FP0)(CPUState *env)
-- 
1.7.2.3




reply via email to

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