From aba46f3d0a22ddee9df8a3b15ad2e99861e737a0 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 5 Jun 2008 22:46:19 -0700 Subject: [PATCH] --- yaml --- r: 97801 b: refs/heads/master c: 3527fb326f07bc8e85cf66d4f987ebeea24e8e4a h: refs/heads/master i: 97799: 8f9fe39fe5a9793beb0134eab30a4ffbce1ae649 v: v3 --- [refs] | 2 +- trunk/include/linux/bitrev.h | 1 + trunk/lib/bitrev.c | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 868e3842ef1d..eeb15c4785ee 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f2eb432715a81a703e626df59347ba3557009557 +refs/heads/master: 3527fb326f07bc8e85cf66d4f987ebeea24e8e4a diff --git a/trunk/include/linux/bitrev.h b/trunk/include/linux/bitrev.h index 05e540d6963a..7ffe03f4693d 100644 --- a/trunk/include/linux/bitrev.h +++ b/trunk/include/linux/bitrev.h @@ -10,6 +10,7 @@ static inline u8 bitrev8(u8 byte) return byte_rev_table[byte]; } +extern u16 bitrev16(u16 in); extern u32 bitrev32(u32 in); #endif /* _LINUX_BITREV_H */ diff --git a/trunk/lib/bitrev.c b/trunk/lib/bitrev.c index 989aff73f881..3956203456d4 100644 --- a/trunk/lib/bitrev.c +++ b/trunk/lib/bitrev.c @@ -42,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