diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-08 11:36:25 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 17:28:39 +0100 |
commit | a5cfc1ec58a07074dacb6aa8c79eff864c966d12 (patch) | |
tree | 5fbb16ee570ec1d9a9f6adbc7a5cc963e7ca93d8 /lib/Kconfig | |
parent | [PATCH] Fix generic WARN_ON message (diff) | |
download | linux-a5cfc1ec58a07074dacb6aa8c79eff864c966d12.tar.xz linux-a5cfc1ec58a07074dacb6aa8c79eff864c966d12.zip |
[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>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 734ce95a93d1..0d683559080e 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -4,6 +4,9 @@ menu "Library routines" +config BITREVERSE + tristate + config CRC_CCITT tristate "CRC-CCITT functions" help |