Add 64-bit byte-swapping operations.

This commit is contained in:
Michael Brown
2006-05-13 11:40:39 +00:00
parent 5009f8d6a2
commit 1ad72e0e79
4 changed files with 48 additions and 7 deletions

View File

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