Browse Source

use ecx instead of cl (no speed change on P3 but might avoid partial register stalls on some cpus)

Originally committed as revision 6656 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
d17faef011
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/cabac.h

+ 4
- 4
libavcodec/cabac.h View File

@@ -426,8 +426,8 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"xorl %%ebx, %%ecx \n\t"
"shrl $17, %%ecx \n\t"
"movzbl " MANGLE(ff_h264_norm_shift) "(%%ecx), %%ecx \n\t"
"neg %%cl \n\t"
"add $7, %%cl \n\t"
"neg %%ecx \n\t"
"add $7, %%ecx \n\t"

"shll %%cl , %%esi \n\t"
"addl %%esi, %%ebx \n\t"
@@ -495,8 +495,8 @@ static int get_cabac(CABACContext *c, uint8_t * const state){
"xorl %%ebx, %%ecx \n\t"
"shrl $17, %%ecx \n\t"
"movzbl " MANGLE(ff_h264_norm_shift) "(%%ecx), %%ecx \n\t"
"neg %%cl \n\t"
"add $7, %%cl \n\t"
"neg %%ecx \n\t"
"add $7, %%ecx \n\t"

"shll %%cl , %%esi \n\t"
"addl %%esi, %%ebx \n\t"


Loading…
Cancel
Save