mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
add 64bit byteswaps.
git-svn-id: svn://coreboot.org/openbios/openbios-devel@20 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
#define __bswap16(x) ((((x) & 0xff00) >> 8) | (((x) & 0x00ff) << 8))
|
||||
|
||||
#define __bswap64(x) ( (__bswap32( (x) >> 32)) | \
|
||||
(__bswap32((x) & 0xffffffff) << 32) )
|
||||
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
#define __cpu_to_le32(x) ((u32) (x))
|
||||
|
||||
Reference in New Issue
Block a user