[FFmpeg-devel] [PATCH] Macros to copy small, possibly unaligned, values

Reimar Döffinger Reimar.Doeffinger
Tue Jun 2 20:47:57 CEST 2009

On Tue, Jun 02, 2009 at 02:06:12PM -0400, Jeff Downs wrote:
> Attached adds AV_CN* macros to provide a universal way to copy small, 
> possibly unaligned, constant-sized values.

Note that there is such a thing already in libavutil/lzo.c.
Issue is just that the defines are set manually...
Since I benchmarked that a lot on x86 back then, the obvious question
is if there is any reason at all to avoid using memcpy...

More information about the ffmpeg-devel mailing list