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
This commit is contained in:
parent
09d459a1db
commit
57e4c06ed7
@ -337,6 +337,7 @@ static inline void stfl(target_ulong ptr, float v)
|
|||||||
#define atan2 atan2l
|
#define atan2 atan2l
|
||||||
#define floor floorl
|
#define floor floorl
|
||||||
#define ceil ceill
|
#define ceil ceill
|
||||||
|
#define ldexp ldexpl
|
||||||
#else
|
#else
|
||||||
#define floatx_to_int32 float64_to_int32
|
#define floatx_to_int32 float64_to_int32
|
||||||
#define floatx_to_int64 float64_to_int64
|
#define floatx_to_int64 float64_to_int64
|
||||||
|
@ -2888,11 +2888,7 @@ void helper_frndint(void)
|
|||||||
|
|
||||||
void helper_fscale(void)
|
void helper_fscale(void)
|
||||||
{
|
{
|
||||||
CPU86_LDouble fpsrcop, fptemp;
|
ST0 = ldexp (ST0, (int)(ST1));
|
||||||
|
|
||||||
fpsrcop = 2.0;
|
|
||||||
fptemp = pow(fpsrcop,ST1);
|
|
||||||
ST0 *= fptemp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void helper_fsin(void)
|
void helper_fsin(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user