From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn7i-0003uR-LY for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qtn7c-0007nT-WB for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:54:02 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:45763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn7c-0007mr-Ol for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:53:56 -0400 Received: by gwb19 with SMTP id 19so557757gwb.4 for ; Wed, 17 Aug 2011 13:53:51 -0700 (PDT) From: Bryce Lanham Date: Wed, 17 Aug 2011 15:53:29 -0500 Message-Id: <1313614410-29359-9-git-send-email-blanham@gmail.com> In-Reply-To: <1313614410-29359-1-git-send-email-blanham@gmail.com> References: <1313614410-29359-1-git-send-email-blanham@gmail.com> Subject: [Qemu-devel] [PATCH 098/111] m68k: use exp2l() to compute exp2_FP0() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent Vivier From: Laurent Vivier Signed-off-by: Laurent Vivier --- 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