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

Michael Niedermayer michaelni at gmx.at
Sun Jan 8 23:30:15 CET 2012


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120108/7d34177d/attachment.asc>


More information about the ffmpeg-devel mailing list