https://github.com/torvalds/linux
Raw File
Tip revision: 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 authored by Linus Torvalds on 26 October 2008, 19:13:29 UTC
Linux 2.6.28-rc2
Tip revision: 0173a32
bitrev.h
#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 u16 bitrev16(u16 in);
extern u32 bitrev32(u32 in);

#endif /* _LINUX_BITREV_H */
back to top