[PATCH] headers: enable ppc64 ___arch__swab16 and ___arch__swab32
authorGOTO Masanori <gotom@debian.or.jp>
Wed, 29 Jun 2005 03:45:03 +0000 (20:45 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 29 Jun 2005 04:20:32 +0000 (21:20 -0700)
commit12822bc272e857544476cef9175462711899008b
treeb1add1c4c3a152493628302370c72fd3eb06839b
parentc016e2257acd00a7ffd87fa1eec896138563d1aa
[PATCH] headers: enable ppc64 ___arch__swab16 and ___arch__swab32

This patch cleans up asm-ppc64/byteorder.h to enable ___arch__swab16 and
___arch__swab32 which are marked TODO currently.  It removes ___arch__swab64
because ppc64 does not have short instruction combinations for swab64, the
recent gcc generates enough smart code that is equivalent to hand assembled
code under my tests.

Signed-off-by: GOTO Masanori <gotom@debian.or.jp>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ppc64/byteorder.h