diff options
Diffstat (limited to 'lib/bitrev.c')
| -rw-r--r-- | lib/bitrev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bitrev.c b/lib/bitrev.c index f4e1c49c825..3956203456d 100644 --- a/lib/bitrev.c +++ b/lib/bitrev.c @@ -2,6 +2,10 @@ #include <linux/module.h> #include <linux/bitrev.h> +MODULE_AUTHOR("Akinobu Mita <akinobu.mita@gmail.com>"); +MODULE_DESCRIPTION("Bit ordering reversal functions"); +MODULE_LICENSE("GPL"); + const u8 byte_rev_table[256] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, @@ -38,10 +42,11 @@ const u8 byte_rev_table[256] = { }; EXPORT_SYMBOL_GPL(byte_rev_table); -static __always_inline u16 bitrev16(u16 x) +u16 bitrev16(u16 x) { return (bitrev8(x & 0xff) << 8) | bitrev8(x >> 8); } +EXPORT_SYMBOL(bitrev16); /** * bitrev32 - reverse the order of bits in a u32 value |
