[MPlayer-cvslog] r21063 - trunk/mp3lib/dct64_sse.c

reimar subversion at mplayerhq.hu
Sun Nov 19 17:48:45 CET 2006


Author: reimar
Date: Sun Nov 19 17:48:45 2006
New Revision: 21063

Modified:
   trunk/mp3lib/dct64_sse.c

Log:
directly insert ffreep %%st(0) opcode for compatibility with old
binutils instead of darwin-specific workaround.


Modified: trunk/mp3lib/dct64_sse.c
==============================================================================
--- trunk/mp3lib/dct64_sse.c	(original)
+++ trunk/mp3lib/dct64_sse.c	Sun Nov 19 17:48:45 2006
@@ -298,13 +298,6 @@
        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 @@
         "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"



More information about the MPlayer-cvslog mailing list