From 9f5ff83f2a836a34734250ec924b9bb45fa67573 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sat, 18 Apr 2009 00:00:31 +0000 Subject: 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 --- libavutil/intreadwrite.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/intreadwrite.h') diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h index 42fb890a0e..5e55327ff9 100644 --- a/libavutil/intreadwrite.h +++ b/libavutil/intreadwrite.h @@ -31,6 +31,8 @@ #if ARCH_ARM # include "arm/intreadwrite.h" +#elif ARCH_PPC +# include "ppc/intreadwrite.h" #endif /* -- cgit v1.2.3