OSDN Git Service

bswap: use native types for av_bwap16().
authorJason Garrett-Glaser <jason@x264.com>
Fri, 22 Apr 2011 21:59:55 +0000 (17:59 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 23 Apr 2011 00:05:48 +0000 (20:05 -0400)
commit15919ee48f507a4ca17147e7247f5cb68f752c2c
tree59b0a98820c3682cefc2ccca67c1255f1697cd00
parent6ffd7eddb832a21f51661038620ef655640ee83f
bswap: use native types for av_bwap16().

This prevents a call to bytestream_get_be16() using a movzwl both before
and after the ror instruction, which is obviously inefficient. Arm uses
the same trick also.

Sintel decoding goes from (avg+SD) 9.856 +/- 0.003 to 9.797 +/- 0.003 sec.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavutil/x86/bswap.h