Added patch from bug #118324.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@351 67a159dc-881f-0410-a524-ba9dfbe2cb84cleanup-cruft
parent
f83099223d
commit
5f9208d868
@ -1,30 +0,0 @@
|
|||||||
/*
|
|
||||||
* elf.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _BYTESWAP_H
|
|
||||||
#define _BYTESWAP_H
|
|
||||||
|
|
||||||
#define bswap_16(x) \
|
|
||||||
((__u16)( \
|
|
||||||
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
|
|
||||||
(((__u16)(x) & (__u16)0xff00U) >> 8) ))
|
|
||||||
#define bswap_32(x) \
|
|
||||||
((__u32)( \
|
|
||||||
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
|
|
||||||
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
|
|
||||||
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
|
|
||||||
(((__u32)(x) & (__u32)0xff000000UL) >> 24) ))
|
|
||||||
#define bswap_64(x) \
|
|
||||||
((__u64)( \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
|
|
||||||
(__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) ))
|
|
||||||
|
|
||||||
#endif /* _BYTESWAP_H */
|
|
||||||
|
|
Loading…
Reference in new issue