2 * SPDX-License-Identifier: GPL-2.0+
4 * Based on bitrev from the Linux kernel, by Akinobu Mita
7 #ifndef _LINUX_BITREV_H
8 #define _LINUX_BITREV_H
10 #include <linux/types.h>
12 extern u8 const byte_rev_table[256];
14 static inline u8 bitrev8(u8 byte)
16 return byte_rev_table[byte];
22 #endif /* _LINUX_BITREV_H */