Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97801
b: refs/heads/master
c: 3527fb3
h: refs/heads/master
i:
  97799: 8f9fe39
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jun 6, 2008
1 parent dff188b commit aba46f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2eb432715a81a703e626df59347ba3557009557
refs/heads/master: 3527fb326f07bc8e85cf66d4f987ebeea24e8e4a
1 change: 1 addition & 0 deletions trunk/include/linux/bitrev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
3 changes: 2 additions & 1 deletion trunk/lib/bitrev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aba46f3

Please sign in to comment.