ARM: 8187/1: add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction
authorYalin Wang <Yalin.Wang@sonymobile.com>
Mon, 3 Nov 2014 02:01:03 +0000 (03:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Dec 2014 16:43:06 +0000 (16:43 +0000)
this change add CONFIG_HAVE_ARCH_BITREVERSE config option,
so that we can use some architecture's bitrev hardware instruction
to do bitrev operation.

Introduce __constant_bitrev* macro for constant bitrev operation.

Change __bitrev16() __bitrev32() to be inline function,
don't need export symbol for these tiny functions.

Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found