directly insert ffreep %%st(0) opcode for compatibility with old

binutils instead of darwin-specific workaround.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21063 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-11-19 16:48:45 +00:00
parent aa72278e59
commit d948cc9cd0
1 changed files with 1 additions and 8 deletions

View File

@ -298,13 +298,6 @@ void dct64_sse(real *a,real *b,real *c)
To do saturation efficiently in x86 we can use fist(t)(p),
pf2iw, or packssdw. We use fist(p) here.
*/
#ifdef SYS_DARWIN
#define FFREEP "fstp %%st(0)\n\t"
#else
#define FFREEP "ffreep %%st(0)\n\t"
#endif /* SYS_DARWIN */
asm(
"flds %0\n\t"
"flds (%2)\n\t"
@ -433,7 +426,7 @@ void dct64_sse(real *a,real *b,real *c)
"fist 480(%4)\n\t"
"fadds 92(%1)\n\t"
"fistp 416(%4)\n\t"
FFREEP
".byte 0xdf, 0xc0\n\t" // ffreep %%st(0)
:
:"m"(costab_mmx[30]), "r"(b1), "r"(b2), "r"(a), "r"(b)
:"memory"