# HG changeset patch # User pl # Date 1009819361 0 # Node ID 3fd9b781a9d2dd2476e4440eeb11ca14af6062ad # Parent 2bdf3b35e25a449625891400eef55e2bc61a858d workaround for the guilty code that caused sig11 when compiled with gcc-3.0.x (using the old C version - before the Big Indent patch :) diff -r 2bdf3b35e25a -r 3fd9b781a9d2 loader/win32.c --- a/loader/win32.c Mon Dec 31 16:44:03 2001 +0000 +++ b/loader/win32.c Mon Dec 31 17:22:41 2001 +0000 @@ -3410,6 +3410,18 @@ // of debuging fixing & testing - it's almost unimaginable - kabi // _ftol - operated on the float value which is already on the FPU stack + +#ifdef MPLAYER +// Note: the asm version is buggy and causes mysterious sig11 with gcc-3.0 +// flavors so we'd better stick to the old one for the moment (C version +// is found in release 1.39 of this file in MPlayer CVS) - pl +int +exp_ftol (float f) +{ + return (int) (f + .5); +} +#else +#warning "exp_ftol may cause sig11" static void exp_ftol(void) { __asm__ __volatile__ @@ -3426,6 +3438,7 @@ "mov -12(%ebp), %eax \n\t" ); } +#endif static double exppow(double x, double y) {