changeset 13739:09b6ce70be8e

Fix for Windows media audio 9 voice codec (format 0x0a) Tested with dll version 9.0.0.2926
author rtognimp
date Sat, 23 Oct 2004 15:47:08 +0000
parents 39004f891def
children 7b459982a1a8
files loader/win32.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sat Oct 23 00:05:38 2004 +0000
+++ b/loader/win32.c	Sat Oct 23 15:47:08 2004 +0000
@@ -4315,10 +4315,15 @@
 	);
 }
 
-#warning check for _CIpow
-static double exp_CIpow(double x, double y)
-{
-    /*printf("Pow %f  %f    0x%Lx  0x%Lx  => %f\n", x, y, *((int64_t*)&x), *((int64_t*)&y), pow(x, y));*/
+#define FPU_DOUBLES(var1,var2) double var1,var2; \
+  __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var2) : ); \
+  __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var1) : )
+
+static double exp_CIpow(void)
+{
+    FPU_DOUBLES(x,y);
+
+    dbgprintf("_CIpow(%lf, %lf)\n", x, y);
     return pow(x, y);
 }