Logo
Explore Help
Sign In
genesi/linux-legacy-genesi
1
0
Fork 0
You've already forked linux-legacy-genesi
mirror of https://github.com/genesi/linux-legacy.git synced 2026-07-17 22:26:39 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
85ccc365e91de9f0053c94de4cbc6ce97f8170e7
linux-legacy-genesi/include/linux/bitrev.h

16 lines
241 B
C
Raw Normal View History

[PATCH] bit reverse library This patch provides two bit reverse functions and bit reverse table. - reverse the order of bits in a u32 value u8 bitrev8(u8 x); - reverse the order of bits in a u32 value u32 bitrev32(u32 x); - byte reverse table const u8 byte_rev_table[256]; Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-08 02:36:25 -08:00
#ifndef _LINUX_BITREV_H
#define _LINUX_BITREV_H
#include <linux/types.h>
extern u8 const byte_rev_table[256];
static inline u8 bitrev8(u8 byte)
{
return byte_rev_table[byte];
}
extern u32 bitrev32(u32 in);
#endif /* _LINUX_BITREV_H */
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 113ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API