Up to [cvs.NetBSD.org] / src / lib / libutil
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-1-4-base
Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 15 13:31:22 1999 UTC (25 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Changes since 1.20: +3 -6
lines
Diff to previous 1.20 (colored)
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.