1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Based on bitrev from the Linux kernel, by Akinobu Mita
6 #ifndef _LINUX_BITREV_H
7 #define _LINUX_BITREV_H
9 #include <linux/types.h>
11 extern u8 const byte_rev_table[256];
13 static inline u8 bitrev8(u8 byte)
15 return byte_rev_table[byte];
21 #endif /* _LINUX_BITREV_H */