]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Copy amd64 endian.h to x86 and merge with i386 endian.h. Replace
authortijl <tijl@FreeBSD.org>
Tue, 28 Feb 2012 19:39:54 +0000 (19:39 +0000)
committertijl <tijl@FreeBSD.org>
Tue, 28 Feb 2012 19:39:54 +0000 (19:39 +0000)
commitbfd7a07500d59035447033f67bf7408d4150ce05
tree797339aad41ccda256257eda513c3e84ca7ab3cb
parent22eaf01bc1018e5e8eede316b67192f397d25000
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/amd64/include/endian.h
sys/i386/include/endian.h
sys/pc98/include/endian.h
sys/x86/include/endian.h [new file with mode: 0644]