summaryrefslogtreecommitdiffstats
path: root/src/include/byteswap.h
diff options
context:
space:
mode:
authorMichael Brown2006-05-13 13:40:39 +0200
committerMichael Brown2006-05-13 13:40:39 +0200
commit1ad72e0e79b36d52e8b9d2488cbc39edcd8a5ad8 (patch)
tree090dcf9515b8786865daeae55aabd1f977c210eb /src/include/byteswap.h
parentProvide a SCSI device interface to the iSCSI protocol (diff)
downloadipxe-1ad72e0e79b36d52e8b9d2488cbc39edcd8a5ad8.tar.gz
ipxe-1ad72e0e79b36d52e8b9d2488cbc39edcd8a5ad8.tar.xz
ipxe-1ad72e0e79b36d52e8b9d2488cbc39edcd8a5ad8.zip
Add 64-bit byte-swapping operations.
Diffstat (limited to 'src/include/byteswap.h')
-rw-r--r--src/include/byteswap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/byteswap.h b/src/include/byteswap.h
index bed14857..72b5a01d 100644
--- a/src/include/byteswap.h
+++ b/src/include/byteswap.h
@@ -12,8 +12,10 @@
#endif
/* Make routines available to all */
+#define swap64(x) __bswap_64(x)
#define swap32(x) __bswap_32(x)
#define swap16(x) __bswap_16(x)
+#define bswap_64(x) __bswap_64(x)
#define bswap_32(x) __bswap_32(x)
#define bswap_16(x) __bswap_16(x)