changeset 6177:82a03c17f314

Cygwin stdcall mismatch fix.
author atmos4
date Fri, 24 May 2002 01:56:01 +0000
parents 086b7e5074dc
children a31bef216c58
files mp3lib/dct64_3dnow.c mp3lib/dct64_MMX.c mp3lib/dct64_k7.c mp3lib/sr1.c
diffstat 4 files changed, 5 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/dct64_3dnow.c	Fri May 24 00:53:27 2002 +0000
+++ b/mp3lib/dct64_3dnow.c	Fri May 24 01:56:01 2002 +0000
@@ -14,12 +14,7 @@
 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(
--- a/mp3lib/dct64_MMX.c	Fri May 24 00:53:27 2002 +0000
+++ b/mp3lib/dct64_MMX.c	Fri May 24 01:56:01 2002 +0000
@@ -6,12 +6,7 @@
 #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(
--- a/mp3lib/dct64_k7.c	Fri May 24 00:53:27 2002 +0000
+++ b/mp3lib/dct64_k7.c	Fri May 24 01:56:01 2002 +0000
@@ -14,12 +14,7 @@
 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(
--- a/mp3lib/sr1.c	Fri May 24 00:53:27 2002 +0000
+++ b/mp3lib/sr1.c	Fri May 24 01:56:01 2002 +0000
@@ -373,11 +373,11 @@
 static int tables_done_flag=0;
 
 /* It's hidden from gcc in assembler */
-extern void dct64_MMX( void );
-extern void dct64_MMX_3dnow( void );
-extern void dct64_MMX_3dnowex( void );
-extern void dct64_MMX_sse( void );
-void (*dct64_MMX_func)( void );
+extern void __attribute__((__stdcall__)) dct64_MMX(real *, real *, real *);
+extern void __attribute__((__stdcall__)) dct64_MMX_3dnow(real *, real *, real *);
+extern void __attribute__((__stdcall__)) dct64_MMX_3dnowex(real *, real *, real *);
+extern void __attribute__((__stdcall__)) dct64_MMX_sse(real *, real *, real *);
+void __attribute__((__stdcall__)) (*dct64_MMX_func)(real *, real *, real *);
 
 #include "../cpudetect.h"