ARM: 5772/1: Use REV and REV16 for byte swapping on ARMv6+
authorRabin Vincent <rabin@rab.in>
Sun, 25 Oct 2009 15:55:33 +0000 (16:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Oct 2009 15:59:53 +0000 (15:59 +0000)
commit40f5b07832ce29e66f42b61a2e9a1fd94783c136
treeae197b0653a565754e741e505c826773d6a2353f
parenta8cf81ffe0284660fe405e7189f47f1b032f5261
ARM: 5772/1: Use REV and REV16 for byte swapping on ARMv6+

ARMv6 introduced the REV and REV16 instructions that reverse bytes in
words and halfwords.  Use them for the arch-specific implementation of
the byte swapping helpers on ARMv6+.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/swab.h