[MPlayer-dev-eng] Fwd: [Mplayerxp-cvslog] CVS: mplayerxp/codecs/mp3lib dct64_k7.c,1.1.1.1,1.2
Arpi
arpi at thot.banki.hu
Sun Sep 1 18:19:40 CEST 2002
someone with k7 could test and apply this?
--------- Forwarded message ---------
From: Nick Kurshev <nickols_k at users.sourceforge.net>
To: mplayerxp-cvslog at lists.sourceforge.net
Subject: [Mplayerxp-cvslog] CVS: mplayerxp/codecs/mp3lib dct64_k7.c,1.1.1.1,1.2
Update of /cvsroot/mplayerxp/mplayerxp/codecs/mp3lib
In directory usw-pr-cvs1:/tmp/cvs-serv1921
Modified Files:
dct64_k7.c
Log Message:
minor optimization
Index: dct64_k7.c
===================================================================
RCS file: /cvsroot/mplayerxp/mplayerxp/codecs/mp3lib/dct64_k7.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dct64_k7.c 23 Mar 2002 11:09:19 -0000 1.1.1.1
+++ dct64_k7.c 1 Sep 2002 12:42:18 -0000 1.2
@@ -29,10 +29,8 @@
" movq 8(%%eax), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 120(%%eax), %%mm1\n\t"
-" movq 112(%%eax), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 120(%%eax), %%mm1\n\t"
+" pshufw $78, 112(%%eax), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, (%%edx)\n\t"
@@ -50,10 +48,8 @@
" movq 24(%%eax), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 104(%%eax), %%mm1\n\t"
-" movq 96(%%eax), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 104(%%eax), %%mm1\n\t"
+" pshufw $78, 96(%%eax), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 16(%%edx)\n\t"
@@ -71,10 +67,8 @@
" movq 40(%%eax), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 88(%%eax), %%mm1\n\t"
-" movq 80(%%eax), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 88(%%eax), %%mm1\n\t"
+" pshufw $78, 80(%%eax), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 32(%%edx)\n\t"
@@ -92,10 +86,8 @@
" movq 56(%%eax), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 72(%%eax), %%mm1\n\t"
-" movq 64(%%eax), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 72(%%eax), %%mm1\n\t"
+" pshufw $78, 64(%%eax), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 48(%%edx)\n\t"
@@ -115,10 +107,8 @@
" movq 8(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 56(%%edx), %%mm1\n\t"
-" movq 48(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 56(%%edx), %%mm1\n\t"
+" pshufw $78, 48(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, (%%ecx)\n\t"
@@ -136,10 +126,8 @@
" movq 24(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 40(%%edx), %%mm1\n\t"
-" movq 32(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 40(%%edx), %%mm1\n\t"
+" pshufw $78, 32(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 16(%%ecx)\n\t"
@@ -159,10 +147,8 @@
" movq 72(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 120(%%edx), %%mm1\n\t"
-" movq 112(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 120(%%edx), %%mm1\n\t"
+" pshufw $78, 112(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 64(%%ecx)\n\t"
@@ -180,10 +166,8 @@
" movq 88(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 104(%%edx), %%mm1\n\t"
-" movq 96(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 104(%%edx), %%mm1\n\t"
+" pshufw $78, 96(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 80(%%ecx)\n\t"
@@ -206,10 +190,8 @@
" movq 8(%%ecx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 24(%%ecx), %%mm1\n\t"
-" movq 16(%%ecx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 24(%%ecx), %%mm1\n\t"
+" pshufw $78, 16(%%ecx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, (%%edx)\n\t"
@@ -227,10 +209,8 @@
" movq 40(%%ecx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 56(%%ecx), %%mm1\n\t"
-" movq 48(%%ecx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 56(%%ecx), %%mm1\n\t"
+" pshufw $78, 48(%%ecx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 32(%%edx)\n\t"
@@ -248,10 +228,8 @@
" movq 72(%%ecx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 88(%%ecx), %%mm1\n\t"
-" movq 80(%%ecx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 88(%%ecx), %%mm1\n\t"
+" pshufw $78, 80(%%ecx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 64(%%edx)\n\t"
@@ -269,10 +247,8 @@
" movq 104(%%ecx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 120(%%ecx), %%mm1\n\t"
-" movq 112(%%ecx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 120(%%ecx), %%mm1\n\t"
+" pshufw $78, 112(%%ecx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 96(%%edx)\n\t"
@@ -294,10 +270,8 @@
" movq 16(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 8(%%edx), %%mm1\n\t"
-" movq 24(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 8(%%edx), %%mm1\n\t"
+" pshufw $78, 24(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, (%%ecx)\n\t"
@@ -315,10 +289,8 @@
" movq 48(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 40(%%edx), %%mm1\n\t"
-" movq 56(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 40(%%edx), %%mm1\n\t"
+" pshufw $78, 56(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 32(%%ecx)\n\t"
@@ -336,10 +308,8 @@
" movq 80(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 72(%%edx), %%mm1\n\t"
-" movq 88(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 72(%%edx), %%mm1\n\t"
+" pshufw $78, 88(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 64(%%ecx)\n\t"
@@ -357,10 +327,8 @@
" movq 112(%%edx), %%mm4\n\t"
" movq %%mm0, %%mm3\n\t"
" movq %%mm4, %%mm7\n\t"
-" movq 104(%%edx), %%mm1\n\t"
-" movq 120(%%edx), %%mm5\n\t"
-" pswapd %%mm1, %%mm1\n\t"
-" pswapd %%mm5, %%mm5\n\t"
+" pshufw $78, 104(%%edx), %%mm1\n\t"
+" pshufw $78, 120(%%edx), %%mm5\n\t"
" pfadd %%mm1, %%mm0\n\t"
" pfadd %%mm5, %%mm4\n\t"
" movq %%mm0, 96(%%ecx)\n\t"
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mplayerxp-cvslog mailing list
Mplayerxp-cvslog at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayerxp-cvslog
More information about the MPlayer-dev-eng
mailing list