diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-31 17:22:41 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-31 17:22:41 +0000 |
commit | 2c0c208fa3d8983a9ccf179d946f0057291b1754 (patch) | |
tree | b0a55b9ef0140d91f15cd963863609828fb5725f /loader | |
parent | e3b43bd412ab8264dc5af6e221237029f06c961f (diff) | |
download | mpv-2c0c208fa3d8983a9ccf179d946f0057291b1754.tar.bz2 mpv-2c0c208fa3d8983a9ccf179d946f0057291b1754.tar.xz |
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 :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3924 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r-- | loader/win32.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/loader/win32.c b/loader/win32.c index 81fb23dc23..411b61bdfe 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -3410,6 +3410,18 @@ static void expcos(void) // 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 @@ static void exp_ftol(void) "mov -12(%ebp), %eax \n\t" ); } +#endif static double exppow(double x, double y) { |