PERFORCE change 28107 for review

Peter Wemm peter at FreeBSD.org
Fri Apr 4 17:52:02 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=28107

Change 28107 by peter at peter_daintree on 2003/04/04 17:50:57

	note that we have a 64 bit bswap instruction, but dont do it yet.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/include/endian.h#4 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/include/endian.h#4 (text+ko) ====

@@ -89,6 +89,7 @@
 static __inline __uint64_t
 __bswap64(__uint64_t _x)
 {
+	/* XXX we have a 64 bit variation of the bswap instruction now */
 	return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) |
 	    ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) |
 	    ((_x << 24) & ((__uint64_t)0xff << 40)) |


More information about the p4-projects mailing list