From bfd7a07500d59035447033f67bf7408d4150ce05 Mon Sep 17 00:00:00 2001 From: tijl Date: Tue, 28 Feb 2012 19:39:54 +0000 Subject: Copy amd64 endian.h to x86 and merge with i386 endian.h. Replace amd64/i386/pc98 endian.h with stubs. In __bswap64_const(x) the conflict between 0xffUL and 0xffULL has been resolved by reimplementing the macro in terms of __bswap32(x). As a side effect __bswap64_var(x) is now implemented using two bswap instructions on i386 and should be much faster. __bswap32_const(x) has been reimplemented in terms of __bswap16(x) for consistency. --- sys/pc98/include/endian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pc98') diff --git a/sys/pc98/include/endian.h b/sys/pc98/include/endian.h index 911c53e..2ad27a9 100644 --- a/sys/pc98/include/endian.h +++ b/sys/pc98/include/endian.h @@ -3,4 +3,4 @@ */ /* $FreeBSD$ */ -#include +#include -- cgit v1.1