mirror of https://github.com/mpv-player/mpv
Support wmspdmod.dll version 10.0.0.3646
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13752 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
89b775cb8e
commit
cf4cc05fa8
|
@ -4705,6 +4705,25 @@ static double expfloor(double x)
|
|||
return floor(x);
|
||||
}
|
||||
|
||||
#define FPU_DOUBLE(var) double var; \
|
||||
__asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : )
|
||||
|
||||
static double exp_CIcos(void)
|
||||
{
|
||||
FPU_DOUBLE(x);
|
||||
|
||||
dbgprintf("_CIcos(%lf)\n", x);
|
||||
return cos(x);
|
||||
}
|
||||
|
||||
static double exp_CIsin(void)
|
||||
{
|
||||
FPU_DOUBLE(x);
|
||||
|
||||
dbgprintf("_CIsin(%lf)\n", x);
|
||||
return sin(x);
|
||||
}
|
||||
|
||||
struct exports
|
||||
{
|
||||
char name[64];
|
||||
|
@ -4914,6 +4933,8 @@ struct exports exp_msvcrt[]={
|
|||
FF(cos, -1)
|
||||
FF(_ftol,-1)
|
||||
FF(_CIpow,-1)
|
||||
FF(_CIcos,-1)
|
||||
FF(_CIsin,-1)
|
||||
FF(ldexp,-1)
|
||||
FF(frexp,-1)
|
||||
FF(sprintf,-1)
|
||||
|
|
Loading…
Reference in New Issue