[Ffmpeg-cvslog] r6717 - trunk/libavcodec/cabac.h

michael subversion
Tue Oct 17 11:38:37 CEST 2006


Author: michael
Date: Tue Oct 17 11:38:37 2006
New Revision: 6717

Modified:
   trunk/libavcodec/cabac.h

Log:
cosmetic (%%eax->%0)


Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Tue Oct 17 11:38:37 2006
@@ -372,11 +372,11 @@
 #define BYTEEND     "20"
 #ifndef BRANCHLESS_CABAC_DECODER
     asm volatile(
-        "movzbl (%1), %%eax                     \n\t"
+        "movzbl (%1), %0                        \n\t"
         "movl "RANGE    "(%2), %%ebx            \n\t"
         "movl "RANGE    "(%2), %%edx            \n\t"
         "andl $0xC0, %%ebx                      \n\t"
-        "movzbl "MANGLE(ff_h264_lps_range)"(%%eax, %%ebx, 2), %%esi\n\t"
+        "movzbl "MANGLE(ff_h264_lps_range)"(%0, %%ebx, 2), %%esi\n\t"
         "movl "LOW      "(%2), %%ebx            \n\t"
 //eax:state ebx:low, edx:range, esi:RangeLPS
         "subl %%esi, %%edx                      \n\t"
@@ -398,7 +398,7 @@
         "shl %%cl, %%edx                        \n\t"
         "shl %%cl, %%ebx                        \n\t"
 #endif
-        "movzbl "MANGLE(ff_h264_mps_state)"(%%eax), %%ecx   \n\t"
+        "movzbl "MANGLE(ff_h264_mps_state)"(%0), %%ecx   \n\t"
         "movb %%cl, (%1)                        \n\t"
 //eax:state ebx:low, edx:range, esi:RangeLPS
         "test %%bx, %%bx                        \n\t"
@@ -419,9 +419,9 @@
         "movzbl " MANGLE(ff_h264_norm_shift) "(%%esi), %%ecx   \n\t"
         "shll %%cl, %%ebx                       \n\t"
         "shll %%cl, %%edx                       \n\t"
-        "movzbl "MANGLE(ff_h264_lps_state)"(%%eax), %%ecx   \n\t"
+        "movzbl "MANGLE(ff_h264_lps_state)"(%0), %%ecx   \n\t"
         "movb %%cl, (%1)                        \n\t"
-        "addl $1, %%eax                         \n\t"
+        "addl $1, %0                            \n\t"
         "test %%bx, %%bx                        \n\t"
         " jnz 2f                                \n\t"
 
@@ -452,11 +452,11 @@
     bit&=1;
 #else /* BRANCHLESS_CABAC_DECODER */
     asm volatile(
-        "movzbl (%1), %%eax                     \n\t"
+        "movzbl (%1), %0                        \n\t"
         "movl "RANGE    "(%2), %%ebx            \n\t"
         "movl "RANGE    "(%2), %%edx            \n\t"
         "andl $0xC0, %%ebx                      \n\t"
-        "movzbl "MANGLE(ff_h264_lps_range)"(%%eax, %%ebx, 2), %%esi\n\t"
+        "movzbl "MANGLE(ff_h264_lps_range)"(%0, %%ebx, 2), %%esi\n\t"
         "movl "LOW      "(%2), %%ebx            \n\t"
 //eax:state ebx:low, edx:range, esi:RangeLPS
         "subl %%esi, %%edx                      \n\t"
@@ -468,7 +468,7 @@
         "sbbl %%ecx, %%ecx                      \n\t"
         "andl %%ecx, %%edx                      \n\t"
         "subl %%edx, %%ebx                      \n\t"
-        "xorl %%ecx, %%eax                      \n\t"
+        "xorl %%ecx, %0                         \n\t"
 #else /* CMOV_IS_FAST */
         "movl %%edx, %%ecx                      \n\t"
         "shl $17, %%edx                         \n\t"
@@ -480,7 +480,7 @@
         "shl $17, %%ecx                         \n\t"
         "andl %%edx, %%ecx                      \n\t"
         "subl %%ecx, %%ebx                      \n\t"
-        "xorl %%edx, %%eax                      \n\t"
+        "xorl %%edx, %0                         \n\t"
 #endif /* CMOV_IS_FAST */
 
 //eax:state ebx:low edx:mask esi:range
@@ -489,7 +489,7 @@
 
         "movzbl " MANGLE(ff_h264_norm_shift) "(%%esi), %%ecx   \n\t"
         "shll %%cl, %%esi                       \n\t"
-        "movzbl "MANGLE(ff_h264_mlps_state)"+128(%%eax), %%edx   \n\t"
+        "movzbl "MANGLE(ff_h264_mlps_state)"+128(%0), %%edx   \n\t"
         "movb %%dl, (%1)                        \n\t"
         "movl %%esi, "RANGE    "(%2)            \n\t"
         "shll %%cl, %%ebx                       \n\t"




More information about the ffmpeg-cvslog mailing list