PPC asm for AV_RL*()
authorMåns Rullgård <mans@mansr.com>
Sat, 18 Apr 2009 00:00:31 +0000 (00:00 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 18 Apr 2009 00:00:31 +0000 (00:00 +0000)
commit9f5ff83f2a836a34734250ec924b9bb45fa67573
tree7a9ffa02c9049d6606aa3a94af56434173f695b9
parent3c55ce039d5b90afad35e19fc8ca6d147dd3f976
PPC asm for AV_RL*()

PPC is normally big endian but has special little endian load/store
instructions.  Using these avoids a separate byteswap.  This makes the
vorbis decoder about 5% faster.  Not much else uses little-endian
read/write extensively.

GCC generates horrible PPC code for the default AV_[RW]B64 (which uses
a packed struct), so we override it with a plain pointer cast.

Originally committed as revision 18602 to svn://svn.ffmpeg.org/ffmpeg/trunk
configure
libavutil/intreadwrite.h
libavutil/ppc/intreadwrite.h [new file with mode: 0644]