2 * This file is released under the terms of GPL v2 and any later version.
3 * See the file COPYING in the root directory of the source tree for details.
5 * Based on bitrev from the Linux kernel, by Akinobu Mita
8 #ifndef _LINUX_BITREV_H
9 #define _LINUX_BITREV_H
11 #include <linux/types.h>
13 extern u8 const byte_rev_table[256];
15 static inline u8 bitrev8(u8 byte)
17 return byte_rev_table[byte];
23 #endif /* _LINUX_BITREV_H */