mirror of https://github.com/mpv-player/mpv
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:
parent
aa72278e59
commit
d948cc9cd0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue