changeset 3996:c4ff7d570f19 libavcodec

moving lps state transition code a little up in the branched asm code (1% faster on P3)
author michael
date Wed, 11 Oct 2006 16:39:50 +0000
parents b00c06477dff
children 8ed26e786210
files cabac.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cabac.h	Wed Oct 11 16:11:41 2006 +0000
+++ b/cabac.h	Wed Oct 11 16:39:50 2006 +0000
@@ -405,11 +405,11 @@
         "subl %%edx, %%ebx                      \n\t"
         "movl %%esi, %%edx                      \n\t"
         "shr $19, %%esi                         \n\t"
+        "movzbl "MANGLE(ff_h264_lps_state)"(%%eax), %%ecx   \n\t"
+        "movb %%cl, (%1)                        \n\t"
         "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"
-        "movb %%cl, (%1)                        \n\t"
         "addl $1, %%eax                         \n\t"
         "test %%bx, %%bx                        \n\t"
         " jnz 2f                                \n\t"