[xiph-commits] r16578 - trunk/theora/lib/x86_vc

cristianadam at svn.xiph.org cristianadam at svn.xiph.org
Fri Sep 25 12:50:48 PDT 2009


Author: cristianadam
Date: 2009-09-25 12:50:48 -0700 (Fri, 25 Sep 2009)
New Revision: 16578

Modified:
   trunk/theora/lib/x86_vc/mmxencfrag.c
   trunk/theora/lib/x86_vc/mmxfrag.c
   trunk/theora/lib/x86_vc/mmxstate.c
Log:
Removed EBX register usage in inline MSVC assembly.

Modified: trunk/theora/lib/x86_vc/mmxencfrag.c
===================================================================
--- trunk/theora/lib/x86_vc/mmxencfrag.c	2009-09-25 17:02:44 UTC (rev 16577)
+++ trunk/theora/lib/x86_vc/mmxencfrag.c	2009-09-25 19:50:48 UTC (rev 16578)
@@ -26,7 +26,7 @@
 #define SRC esi
 #define REF edx
 #define YSTRIDE ecx
-#define YSTRIDE3 ebx
+#define YSTRIDE3 edi
     mov YSTRIDE,_ystride
     mov SRC,_src
     mov REF,_ref
@@ -571,7 +571,7 @@
  const unsigned char *_src1,const unsigned char *_src2,int _src_ystride){
   __asm{
     /*Load the first 3 rows.*/
-#define DST_YSTRIDE ebx
+#define DST_YSTRIDE edi
 #define SRC_YSTRIDE esi
 #define DST eax
 #define SRC1 edx
@@ -802,7 +802,7 @@
   for(i=4;i-->0;){
     __asm{
 #define SRC edx
-#define YSTRIDE ebx
+#define YSTRIDE esi
 #define RESIDUE eax
 #define REF ecx
       mov YSTRIDE,_ystride
@@ -858,7 +858,7 @@
  const unsigned char *_src,int _ystride){
    __asm{
 #define YSTRIDE edx
-#define YSTRIDE3 ebx
+#define YSTRIDE3 edi
 #define RESIDUE ecx
 #define SRC eax
     mov YSTRIDE,_ystride

Modified: trunk/theora/lib/x86_vc/mmxfrag.c
===================================================================
--- trunk/theora/lib/x86_vc/mmxfrag.c	2009-09-25 17:02:44 UTC (rev 16577)
+++ trunk/theora/lib/x86_vc/mmxfrag.c	2009-09-25 19:50:48 UTC (rev 16578)
@@ -33,7 +33,7 @@
 #define SRC edx
 #define DST eax
 #define YSTRIDE ecx
-#define YSTRIDE3 ebx
+#define YSTRIDE3 esi
   OC_FRAG_COPY_MMX(_dst,_src,_ystride);
 #undef SRC
 #undef DST
@@ -47,7 +47,7 @@
 #define DST edx
 #define DST4 esi
 #define YSTRIDE eax
-#define YSTRIDE3 ebx
+#define YSTRIDE3 edi
 #define RESIDUE ecx
     mov DST,_dst
     mov YSTRIDE,_ystride
@@ -173,7 +173,7 @@
     __asm{
 #define DST edx
 #define SRC ecx
-#define YSTRIDE ebx
+#define YSTRIDE edi
 #define RESIDUE eax
       mov DST,_dst
       mov SRC,_src
@@ -236,7 +236,7 @@
   for(i=4;i-->0;){
     __asm{
 #define SRC1 ecx
-#define SRC2 ebx
+#define SRC2 edi
 #define YSTRIDE esi
 #define RESIDUE edx
 #define DST eax

Modified: trunk/theora/lib/x86_vc/mmxstate.c
===================================================================
--- trunk/theora/lib/x86_vc/mmxstate.c	2009-09-25 17:02:44 UTC (rev 16577)
+++ trunk/theora/lib/x86_vc/mmxstate.c	2009-09-25 19:50:48 UTC (rev 16578)
@@ -125,7 +125,7 @@
 #define SRC edx
 #define DST eax
 #define YSTRIDE ecx
-#define YSTRIDE3 ebx
+#define YSTRIDE3 edi
     OC_FRAG_COPY_MMX(dst_frame_data+frag_buf_off,
      src_frame_data+frag_buf_off,ystride);
 #undef SRC



More information about the commits mailing list