This website requires JavaScript.
Explore
Help
Sign In
Aren
/
NetBSD
Watch
1
Star
0
Fork
You've already forked NetBSD
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
c6b969cd89
NetBSD
/
sys
/
arch
/
pmax
/
include
/
bswap.h
4 lines
83 B
C
Raw
Normal View
History
Unescape
Escape
- Fix RCS Ids. - Spacing. - Protect from multiple inclusion in a consistant way (except on headers that do nothing except function as mips header wrappers).
2000-01-09 18:34:41 +03:00
/* $NetBSD: bswap.h,v 1.2 2000/01/09 15:34:41 ad Exp $ */
Move the bswap functions from libutil to libc (this bups the minor of libc and the major of libutil). For little-endian architectures merge the bnswap() assembly versions with nto* and hton* using symbols aliasing. Use symbol renaming for the bswap function in this case to avoid namespace pollution. Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian machines, common code for inline macros go in machine/byte_swap.h Sync libkern with libc. Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 16:31:15 +03:00
#
include
<mips/bswap.h>