removed the stdcall convention

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11241 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-10-22 20:58:46 +00:00
parent c5065685a8
commit cf069df98e
5 changed files with 11 additions and 10 deletions

View File

@ -14,7 +14,7 @@
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
static float plus_1f = 1.0;
void __attribute__ (( __stdcall__ )) dct64_MMX_3dnow(real *a,real *b,real *c)
void dct64_MMX_3dnow(real *a,real *b,real *c)
{
char tmp[256];
__asm __volatile(

View File

@ -6,7 +6,7 @@
#include "../mangle.h"
#define real float /* ugly - but only way */
void __attribute__ (( __stdcall__ )) dct64_MMX(real *a,real *b,real *c)
void dct64_MMX(real *a,real *b,real *c)
{
char tmp[256];
__asm __volatile(

View File

@ -14,7 +14,7 @@
static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL;
static float plus_1f = 1.0;
void __attribute__ (( __stdcall__ )) dct64_MMX_3dnowex(real *a,real *b,real *c)
void dct64_MMX_3dnowex(real *a,real *b,real *c)
{
char tmp[256];
__asm __volatile(

View File

@ -69,7 +69,6 @@ __asm __volatile(
"leal (%%esi,%%eax,2),%%edx\n\t"
"movl %%eax,%5\n\t"
"incl %%eax\n\t"
"pushl %0\n\t"
"andl %%ebx,%%eax\n\t"
"leal 544(%%esi,%%eax,2),%%ecx\n\t"
"incl %%ebx\n\t"
@ -80,9 +79,11 @@ __asm __volatile(
"leal 544(%%esi),%%esi\n\t"
".L02:\n\t"
"emms\n\t"
"pushl %0\n\t"
"pushl %%edx\n\t"
"pushl %%ecx\n\t"
"call *"MANGLE(dct64_MMX_func)"\n\t"
"addl $12, %%esp\n\t"
"leal 1(%%ebx), %%ecx\n\t"
"subl %5,%%ebx\n\t"
"pushl %%ecx\n\t"
@ -241,5 +242,5 @@ __asm __volatile(
"emms\n\t"
:
:"m"(bandPtr),"m"(channel),"m"(samples),"m"(buffs),"m"(bo), "m"(temp)
:"memory","%edi","%esi","%ebx");
:"memory","%edi","%esi","%ebx","%esp");
}

View File

@ -383,11 +383,11 @@ int _has_mmx = 0; // used by layer2.c, layer3.c to pre-scale coeffs
/******************************************************************************/
/* It's hidden from gcc in assembler */
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 *);
extern void dct64_MMX(real *, real *, real *);
extern void dct64_MMX_3dnow(real *, real *, real *);
extern void dct64_MMX_3dnowex(real *, real *, real *);
extern void dct64_MMX_sse(real *, real *, real *);
void (*dct64_MMX_func)(real *, real *, real *);
#include "../cpudetect.h"