aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 14:33:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 14:33:17 +0000
commit57e4c06ed749e14c7c183996883dee27c23a0ade (patch)
treecbb162b3e0c76f0e4922067465619b0da9103b86 /target-i386/helper.c
parent09d459a1db9b19d1ff66e98620f1ea16aba379de (diff)
downloadqemu-57e4c06ed749e14c7c183996883dee27c23a0ade.zip
qemu-57e4c06ed749e14c7c183996883dee27c23a0ade.tar.gz
qemu-57e4c06ed749e14c7c183996883dee27c23a0ade.tar.bz2
fscale fix (bug noticed by Kuwanger, fix by malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1528 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index c83dbf2..01b663f 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -2888,11 +2888,7 @@ void helper_frndint(void)
void helper_fscale(void)
{
- CPU86_LDouble fpsrcop, fptemp;
-
- fpsrcop = 2.0;
- fptemp = pow(fpsrcop,ST1);
- ST0 *= fptemp;
+ ST0 = ldexp (ST0, (int)(ST1));
}
void helper_fsin(void)