diff intreadwrite.h @ 729:753953ed8ff0 libavutil

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.
author mru
date Sat, 18 Apr 2009 00:00:31 +0000
parents 1fa3820b1a84
children 03f6641ce9e5
line wrap: on
line diff
--- a/intreadwrite.h	Sat Apr 18 00:00:28 2009 +0000
+++ b/intreadwrite.h	Sat Apr 18 00:00:31 2009 +0000
@@ -31,6 +31,8 @@
 
 #if   ARCH_ARM
 #   include "arm/intreadwrite.h"
+#elif ARCH_PPC
+#   include "ppc/intreadwrite.h"
 #endif
 
 /*