changeset 13751:0e55c4045d9b

Support wmspdmod.dll version 10.0.0.3646
author rtognimp
date Sun, 24 Oct 2004 21:56:51 +0000
parents 62e739558f5c
children e193600132d5
files loader/win32.c
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sun Oct 24 21:23:58 2004 +0000
+++ b/loader/win32.c	Sun Oct 24 21:56:51 2004 +0000
@@ -4705,6 +4705,25 @@
     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 @@
     FF(cos, -1)
     FF(_ftol,-1)
     FF(_CIpow,-1)
+    FF(_CIcos,-1)
+    FF(_CIsin,-1)
     FF(ldexp,-1)
     FF(frexp,-1)
     FF(sprintf,-1)