[OpenBIOS] r20 - openbios-devel/include/libc
svn@openbios.org
svn at openbios.org
Wed May 17 14:28:27 CEST 2006
Author: stepan
Date: 2006-05-17 14:28:27 +0200 (Wed, 17 May 2006)
New Revision: 20
Modified:
openbios-devel/include/libc/byteorder.h
Log:
add 64bit byteswaps.
Modified: openbios-devel/include/libc/byteorder.h
===================================================================
--- openbios-devel/include/libc/byteorder.h 2006-05-16 17:36:09 UTC (rev 19)
+++ openbios-devel/include/libc/byteorder.h 2006-05-17 12:28:27 UTC (rev 20)
@@ -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))
More information about the OpenBIOS
mailing list