]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/bitrev.h
tg3: Fix message 80 char violations
[net-next-2.6.git] / include / linux / bitrev.h
CommitLineData
a5cfc1ec
AM
1#ifndef _LINUX_BITREV_H
2#define _LINUX_BITREV_H
3
4#include <linux/types.h>
5
6extern u8 const byte_rev_table[256];
7
8static inline u8 bitrev8(u8 byte)
9{
10 return byte_rev_table[byte];
11}
12
3527fb32 13extern u16 bitrev16(u16 in);
a5cfc1ec
AM
14extern u32 bitrev32(u32 in);
15
16#endif /* _LINUX_BITREV_H */