Date: Sat, 9 Mar 2002 13:02:16 -0800 (PST) From: Mike Barcroft <mike@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include/arpa inet.h src/lib/libstand stand.h src/sys/alpha/include endian.h src/sys/i386/include endian.h src/sys/ia64/include endian.h src/sys/netinet in.h src/sys/powerpc/include endian.h src/sys/sparc64/include endian.h ... Message-ID: <200203092102.g29L2GI56299@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
mike 2002/03/09 13:02:16 PST
Modified files:
include/arpa inet.h
lib/libstand stand.h
sys/alpha/include endian.h
sys/i386/include endian.h
sys/ia64/include endian.h
sys/netinet in.h
sys/powerpc/include endian.h
sys/sparc64/include endian.h
sys/sys param.h
Log:
o Don't require long long support in bswap64() functions.
o In i386's <machine/endian.h>, macros have some advantages over
inlines, so change some inlines to macros.
o In i386's <machine/endian.h>, ungarbage collect word_swap_int()
(previously __uint16_swap_uint32), it has some uses on i386's with
PDP endianness.
Submitted by: bde
o Move a comment up in <machine/endian.h> that was accidentially moved
down a few revisions ago.
o Reenable userland's use of optimized inline-asm versions of
byteorder(3) functions.
o Fix ordering of prototypes vs. redefinition of byteorder(3)
functions, so that the non-GCC (libc asm) case has proper
prototypes.
o Add proper prototypes for byteorder(3) functions in <sys/param.h>.
o Prevent redundant duplicate prototypes by making use of the
_BYTEORDER_PROTOTYPED define.
o Move the bswap16(), bswap32(), bswap64() C functions into MD space
for platforms in which asm versions don't exist. This significantly
reduces the complexity of some things at the cost of duplicate code.
Reviewed by: bde
Revision Changes Path
1.18 +15 -11 src/include/arpa/inet.h
1.29 +11 -5 src/lib/libstand/stand.h
1.9 +16 -6 src/sys/alpha/include/endian.h
1.32 +44 -18 src/sys/i386/include/endian.h
1.8 +5 -12 src/sys/ia64/include/endian.h
1.60 +10 -7 src/sys/netinet/in.h
1.7 +33 -3 src/sys/powerpc/include/endian.h
1.7 +35 -1 src/sys/sparc64/include/endian.h
1.117 +20 -37 src/sys/sys/param.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203092102.g29L2GI56299>
