Commit graph android_kernel_sony_sdm845/include/linux/bitrev.h
Message SHA1
[PATCH] bit reverse library
This patch provides two bit reverse functions and bit reverse table.

- reverse the order of bits in a u32 value

	u8 bitrev8(u8 x);

- reverse the order of bits in a u32 value

	u32 bitrev32(u32 x);

- byte reverse table

	const u8 byte_rev_table[256];

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Akinobu Mita   authored and   Linus Torvalds   commited 2006-12-08 08:28:39 -08:00
a5cfc1ec58