This website requires JavaScript.
Explore
Help
Sign In
d
/
freebsd-nq
Watch
1
Star
0
Fork
0
You've already forked freebsd-nq
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
429b844ba6
freebsd-nq
/
sys
/
amd64
/
include
/
endian.h
7 lines
87 B
C
Raw
Normal View
History
Unescape
Escape
This is the start of the FreeBSD/x86_64 kernel.
2002-06-30 08:57:17 +00:00
/*-
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.
2012-02-28 19:39:54 +00:00
*
This
file
is
in
the
public
domain
.
This is the start of the FreeBSD/x86_64 kernel.
2002-06-30 08:57:17 +00:00
*/
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.
2012-02-28 19:39:54 +00:00
/* $FreeBSD$ */
This is the start of the FreeBSD/x86_64 kernel.
2002-06-30 08:57:17 +00:00
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.
2012-02-28 19:39:54 +00:00
#
include
<x86/endian.h>
Reference in New Issue
Copy Permalink