summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorAkinobu Mita2006-12-08 11:36:25 +0100
committerLinus Torvalds2006-12-08 17:28:39 +0100
commita5cfc1ec58a07074dacb6aa8c79eff864c966d12 (patch)
tree5fbb16ee570ec1d9a9f6adbc7a5cc963e7ca93d8 /lib/Makefile
parent[PATCH] Fix generic WARN_ON message (diff)
downloadkernel-qcow2-linux-a5cfc1ec58a07074dacb6aa8c79eff864c966d12.tar.gz
kernel-qcow2-linux-a5cfc1ec58a07074dacb6aa8c79eff864c966d12.tar.xz
kernel-qcow2-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/Makefile')
-rw-r--r--lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 7ab486b883a8..6f675c6149a7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -35,6 +35,7 @@ ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
lib-y += dec_and_lock.o
endif
+obj-$(CONFIG_BITREVERSE) += bitrev.o
obj-$(CONFIG_CRC_CCITT) += crc-ccitt.o
obj-$(CONFIG_CRC16) += crc16.o
obj-$(CONFIG_CRC32) += crc32.o