e6dd1ad911
MPlayer is a movie player for LINUX (runs on many other Unices, and non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some RealMedia files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too (and you don't need the avifile library at all!). Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me Withstanding issues: see how to deal with optimization detection at build time so that binary packages can be created; check make it work on platforms other than i386, etc. things can be done in-tree.
248 lines
5.1 KiB
Plaintext
248 lines
5.1 KiB
Plaintext
$OpenBSD: patch-mp3lib_dct36_k7_s,v 1.1.1.1 2002/05/09 05:19:10 pvalchev Exp $
|
|
--- mp3lib/dct36_k7.s.orig Wed May 9 09:59:55 2001
|
|
+++ mp3lib/dct36_k7.s Fri May 3 20:52:10 2002
|
|
@@ -40,9 +40,9 @@
|
|
/// this program. Use it at your own risk.
|
|
///
|
|
|
|
- .globl dct36_3dnowex
|
|
- .type dct36_3dnowex,@function
|
|
-dct36_3dnowex:
|
|
+ .globl _dct36_3dnowex
|
|
+ .type _dct36_3dnowex,@function
|
|
+_dct36_3dnowex:
|
|
pushl %ebp
|
|
movl %esp,%ebp
|
|
subl $120,%esp
|
|
@@ -133,9 +133,9 @@ dct36_3dnowex:
|
|
movd %mm3,68(%eax)
|
|
movq 24(%eax),%mm0
|
|
movq 48(%eax),%mm1
|
|
- movd COS9+12,%mm2
|
|
+ movd _COS9+12,%mm2
|
|
punpckldq %mm2,%mm2
|
|
- movd COS9+24,%mm3
|
|
+ movd _COS9+24,%mm3
|
|
punpckldq %mm3,%mm3
|
|
pfmul %mm2,%mm0
|
|
pfmul %mm3,%mm1
|
|
@@ -145,41 +145,41 @@ dct36_3dnowex:
|
|
pi2fd %mm7,%mm7
|
|
popl %eax
|
|
movq 8(%eax),%mm2
|
|
- movd COS9+4,%mm3
|
|
+ movd _COS9+4,%mm3
|
|
punpckldq %mm3,%mm3
|
|
pfmul %mm3,%mm2
|
|
pfadd %mm0,%mm2
|
|
movq 40(%eax),%mm3
|
|
- movd COS9+20,%mm4
|
|
+ movd _COS9+20,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfadd %mm3,%mm2
|
|
movq 56(%eax),%mm3
|
|
- movd COS9+28,%mm4
|
|
+ movd _COS9+28,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfadd %mm3,%mm2
|
|
movq (%eax),%mm3
|
|
movq 16(%eax),%mm4
|
|
- movd COS9+8,%mm5
|
|
+ movd _COS9+8,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfadd %mm4,%mm3
|
|
movq 32(%eax),%mm4
|
|
- movd COS9+16,%mm5
|
|
+ movd _COS9+16,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfadd %mm4,%mm3
|
|
pfadd %mm1,%mm3
|
|
movq 64(%eax),%mm4
|
|
- movd COS9+32,%mm5
|
|
+ movd _COS9+32,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfadd %mm4,%mm3
|
|
movq %mm2,%mm4
|
|
pfadd %mm3,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+0,%mm5
|
|
+ punpckldq _tfcos36+0,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -204,7 +204,7 @@ dct36_3dnowex:
|
|
movq %mm3,%mm4
|
|
pfsub %mm2,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+32,%mm5
|
|
+ punpckldq _tfcos36+32,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -232,7 +232,7 @@ dct36_3dnowex:
|
|
pfsub %mm3,%mm2
|
|
movq 56(%eax),%mm3
|
|
pfsub %mm3,%mm2
|
|
- movd COS9+12,%mm3
|
|
+ movd _COS9+12,%mm3
|
|
punpckldq %mm3,%mm3
|
|
pfmul %mm3,%mm2
|
|
movq 16(%eax),%mm3
|
|
@@ -240,7 +240,7 @@ dct36_3dnowex:
|
|
pfsub %mm4,%mm3
|
|
movq 64(%eax),%mm4
|
|
pfsub %mm4,%mm3
|
|
- movd COS9+24,%mm4
|
|
+ movd _COS9+24,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
movq 48(%eax),%mm4
|
|
@@ -250,7 +250,7 @@ dct36_3dnowex:
|
|
movq %mm2,%mm4
|
|
pfadd %mm3,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+4,%mm5
|
|
+ punpckldq _tfcos36+4,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -276,7 +276,7 @@ dct36_3dnowex:
|
|
movq %mm3,%mm4
|
|
pfsub %mm2,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+28,%mm5
|
|
+ punpckldq _tfcos36+28,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -301,41 +301,41 @@ dct36_3dnowex:
|
|
movd %mm5,2048(%ebx)
|
|
|
|
movq 8(%eax),%mm2
|
|
- movd COS9+20,%mm3
|
|
+ movd _COS9+20,%mm3
|
|
punpckldq %mm3,%mm3
|
|
pfmul %mm3,%mm2
|
|
pfsub %mm0,%mm2
|
|
movq 40(%eax),%mm3
|
|
- movd COS9+28,%mm4
|
|
+ movd _COS9+28,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfsub %mm3,%mm2
|
|
movq 56(%eax),%mm3
|
|
- movd COS9+4,%mm4
|
|
+ movd _COS9+4,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfadd %mm3,%mm2
|
|
movq (%eax),%mm3
|
|
movq 16(%eax),%mm4
|
|
- movd COS9+32,%mm5
|
|
+ movd _COS9+32,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfsub %mm4,%mm3
|
|
movq 32(%eax),%mm4
|
|
- movd COS9+8,%mm5
|
|
+ movd _COS9+8,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfsub %mm4,%mm3
|
|
pfadd %mm1,%mm3
|
|
movq 64(%eax),%mm4
|
|
- movd COS9+16,%mm5
|
|
+ movd _COS9+16,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfadd %mm4,%mm3
|
|
movq %mm2,%mm4
|
|
pfadd %mm3,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+8,%mm5
|
|
+ punpckldq _tfcos36+8,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -361,7 +361,7 @@ dct36_3dnowex:
|
|
movq %mm3,%mm4
|
|
pfsub %mm2,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+24,%mm5
|
|
+ punpckldq _tfcos36+24,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -385,41 +385,41 @@ dct36_3dnowex:
|
|
psrlq $32,%mm5
|
|
movd %mm5,1920(%ebx)
|
|
movq 8(%eax),%mm2
|
|
- movd COS9+28,%mm3
|
|
+ movd _COS9+28,%mm3
|
|
punpckldq %mm3,%mm3
|
|
pfmul %mm3,%mm2
|
|
pfsub %mm0,%mm2
|
|
movq 40(%eax),%mm3
|
|
- movd COS9+4,%mm4
|
|
+ movd _COS9+4,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfadd %mm3,%mm2
|
|
movq 56(%eax),%mm3
|
|
- movd COS9+20,%mm4
|
|
+ movd _COS9+20,%mm4
|
|
punpckldq %mm4,%mm4
|
|
pfmul %mm4,%mm3
|
|
pfsub %mm3,%mm2
|
|
movq (%eax),%mm3
|
|
movq 16(%eax),%mm4
|
|
- movd COS9+16,%mm5
|
|
+ movd _COS9+16,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfsub %mm4,%mm3
|
|
movq 32(%eax),%mm4
|
|
- movd COS9+32,%mm5
|
|
+ movd _COS9+32,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfadd %mm4,%mm3
|
|
pfadd %mm1,%mm3
|
|
movq 64(%eax),%mm4
|
|
- movd COS9+8,%mm5
|
|
+ movd _COS9+8,%mm5
|
|
punpckldq %mm5,%mm5
|
|
pfmul %mm5,%mm4
|
|
pfsub %mm4,%mm3
|
|
movq %mm2,%mm4
|
|
pfadd %mm3,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+12,%mm5
|
|
+ punpckldq _tfcos36+12,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -445,7 +445,7 @@ dct36_3dnowex:
|
|
movq %mm3,%mm4
|
|
pfsub %mm2,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+20,%mm5
|
|
+ punpckldq _tfcos36+20,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|
|
@@ -479,7 +479,7 @@ dct36_3dnowex:
|
|
movq 64(%eax),%mm3
|
|
pfadd %mm3,%mm4
|
|
movq %mm7,%mm5
|
|
- punpckldq tfcos36+16,%mm5
|
|
+ punpckldq _tfcos36+16,%mm5
|
|
pfmul %mm5,%mm4
|
|
movq %mm4,%mm5
|
|
pfacc %mm5,%mm5
|