From owner-cvs-all Sat Mar 9 13: 2:25 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7811E37B404; Sat, 9 Mar 2002 13:02:16 -0800 (PST) Received: (from mike@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g29L2GI56299; Sat, 9 Mar 2002 13:02:16 -0800 (PST) (envelope-from mike) Message-Id: <200203092102.g29L2GI56299@freefall.freebsd.org> From: Mike Barcroft Date: Sat, 9 Mar 2002 13:02:16 -0800 (PST) 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 ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 , macros have some advantages over inlines, so change some inlines to macros. o In i386's , 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 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 . 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