[Ffmpeg-cvslog] r6743 - trunk/libavcodec/cabac.h
Michael Niedermayer
michaelni
Fri Oct 20 11:38:50 CEST 2006
Hi
On Fri, Oct 20, 2006 at 11:36:00AM +0200, Guillaume Poirier wrote:
> Hi,
>
> michael wrote:
> > Author: michael
> > Date: Fri Oct 20 10:46:33 2006
> > New Revision: 6743
> >
> > Modified:
> > trunk/libavcodec/cabac.h
> >
> > Log:
> > 1 instruction less
> >
> >
> > Modified: trunk/libavcodec/cabac.h
> > ==============================================================================
> > --- trunk/libavcodec/cabac.h (original)
> > +++ trunk/libavcodec/cabac.h Fri Oct 20 10:46:33 2006
> > @@ -696,11 +696,12 @@
> > "addl %1, %%ecx \n\t"
> > "movl %%ecx, (%%eax) \n\t"
> > "addl $4, %%eax \n\t"
> > - "movl %%eax, %2 \n\t"
> >
> > "test $1, %%edx \n\t"
> > " jnz 4f \n\t"
> >
> > + "movl %%eax, %2 \n\t"
> > +
> > "3: \n\t"
> > "addl $1, %1 \n\t"
> > "cmpl %5, %1 \n\t"
>
> I'm a little puzzled... how can there be one instruction less when
> what you did is just pull down one instruction?
its after a conditional branch now, so its one less if the branch is taken
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-cvslog
mailing list