blob: 7ffe03f4693d9c26abe5556d5d71d37097616802 [file] [log] [blame]
Akinobu Mitaa5cfc1e2006-12-08 02:36:25 -08001#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
Harvey Harrison3527fb32008-06-05 22:46:19 -070013extern u16 bitrev16(u16 in);
Akinobu Mitaa5cfc1e2006-12-08 02:36:25 -080014extern u32 bitrev32(u32 in);
15
16#endif /* _LINUX_BITREV_H */