add 64bit byteswaps.

git-svn-id: svn://coreboot.org/openbios/openbios-devel@20 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-17 12:28:27 +00:00
parent 3b61f3011b
commit 1985265919

View File

@@ -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))