[FFmpeg-devel] [PATCH] sgidec: make compiler optimize away memcpy call in inner loop.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jan 9 11:09:14 CET 2012


On Sun, Jan 08, 2012 at 11:30:15PM +0100, Michael Niedermayer wrote:
> On Sun, Jan 08, 2012 at 12:21:25PM +0100, Reimar Döffinger wrote:
> > Using an always_inline function makes the memcpy length a constant,
> > any reasonable compiler will replace it by a single mov instruction
> > without us having to duplicate the actual code.
> > 
> > Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> 
> LGTM

Pushed.
And I think I must apologize, for I think you complained about this
right when I committed the 16 bit support but I never fixed it (ok,
I did now, but that was admittedly a rather long delay to address a
review comment...).


More information about the ffmpeg-devel mailing list