summaryrefslogtreecommitdiffstats
path: root/mp3lib
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-26 19:14:47 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-26 19:14:47 +0000
commitb2697e2516748dc8290a129636865fc1e07d1a0b (patch)
treed2c02a9db5e66586d9f8ac9f3a74e41703a2a8b0 /mp3lib
parenta9c22ff423ddc50137071f484ee6d31feaa016fb (diff)
downloadmpv-b2697e2516748dc8290a129636865fc1e07d1a0b.tar.bz2
mpv-b2697e2516748dc8290a129636865fc1e07d1a0b.tar.xz
Avoid stdcall on cygwin, it causes undefined ref, code needs testing as I have no athlon or k6-2.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5843 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/dct64_3dnow.c7
-rw-r--r--mp3lib/dct64_k7.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/mp3lib/dct64_3dnow.c b/mp3lib/dct64_3dnow.c
index d631644b5f..4a3b83c8d0 100644
--- a/mp3lib/dct64_3dnow.c
+++ b/mp3lib/dct64_3dnow.c
@@ -14,7 +14,12 @@
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
static float plus_1f = 1.0;
+#ifdef __CYGWIN__
+/* will probably cause sig11 with debuggingsymbols, but otherwise undef. ref */
+void dct64_MMX_3dnow(real *a,real *b,real *c)
+#else
void __attribute__ (( __stdcall__ )) dct64_MMX_3dnow(real *a,real *b,real *c)
+#endif
{
char tmp[256];
__asm __volatile(
@@ -913,4 +918,4 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnow(real *a,real *b,real *c)
:
:"m"(a),"m"(b),"m"(c),"m"(tmp[0])
:"memory","%ebx","%esi","%edi");
-} \ No newline at end of file
+}
diff --git a/mp3lib/dct64_k7.c b/mp3lib/dct64_k7.c
index 02ee1dc186..c1237a4652 100644
--- a/mp3lib/dct64_k7.c
+++ b/mp3lib/dct64_k7.c
@@ -14,7 +14,12 @@
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
static float plus_1f = 1.0;
+#ifdef __CYGWIN__
+/* will probably cause sig11 with debuggingsymbols, but otherwise undef. ref */
+void dct64_MMX_3dnowex(real *a,real *b,real *c)
+#else
void __attribute__ (( __stdcall__ )) dct64_MMX_3dnowex(real *a,real *b,real *c)
+#endif
{
char tmp[256];
__asm __volatile(
@@ -791,4 +796,4 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnowex(real *a,real *b,real *c)
:
:"m"(a),"m"(b),"m"(c),"m"(tmp[0])
:"memory","%ebx","%esi","%edi");
-} \ No newline at end of file
+}