summaryrefslogtreecommitdiffstats
path: root/mp3lib/dct64_MMX.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-19 04:47:32 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-19 04:47:32 +0000
commite6f0381dc20ece537e6b0ad03d8c78053de0cc6e (patch)
treefff47b24807146a442beca5d3198ee07a1e42069 /mp3lib/dct64_MMX.c
parent6afa7d698893915b4ed59bb8b14cb04d5b0a8d04 (diff)
downloadmpv-e6f0381dc20ece537e6b0ad03d8c78053de0cc6e.tar.bz2
mpv-e6f0381dc20ece537e6b0ad03d8c78053de0cc6e.tar.xz
mangling in mp3lib + stdcall undefined fix with cygwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4247 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/dct64_MMX.c')
-rw-r--r--mp3lib/dct64_MMX.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mp3lib/dct64_MMX.c b/mp3lib/dct64_MMX.c
index 79618a3c9e..b1f7753045 100644
--- a/mp3lib/dct64_MMX.c
+++ b/mp3lib/dct64_MMX.c
@@ -3,9 +3,15 @@
* See ChangeLog of mpg123-0.59s-pre.1 for detail
* Applied to mplayer by Nick Kurshev <nickols_k@mail.ru>
*/
+#include "../mangle.h"
#define real float /* ugly - but only way */
+#ifdef __CYGWIN__
+/* will probably cause sig11 with debuggingsymbols, but otherwise undef. ref */
+void dct64_MMX(real *a,real *b,real *c)
+#else
void __attribute__ (( __stdcall__ )) dct64_MMX(real *a,real *b,real *c)
+#endif
{
char tmp[256];
__asm __volatile(
@@ -19,7 +25,7 @@ void __attribute__ (( __stdcall__ )) dct64_MMX(real *a,real *b,real *c)
" movl %1,%%edi\n\t"
" flds 4(%%eax)\n\t"
-" movl $costab_mmx,%%ebx\n\t"
+" movl $"MANGLE(costab_mmx)",%%ebx\n\t"
" fadds 120(%%eax)\n\t"
" orl %%ecx,%%ecx\n\t"
" fstps 4(%%edx)\n\t"