From owner-freebsd-hackers Thu Feb 27 20:18:52 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF2B537B401; Thu, 27 Feb 2003 20:18:50 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id A23AD43FA3; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1S4In1o068863; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1S4Inse000921; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1S4IngG000920; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel) Date: Thu, 27 Feb 2003 20:18:49 -0800 From: Marcel Moolenaar To: Mike Barcroft Cc: Nate Lawson , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines Message-ID: <20030228041849.GB813@athlon.pn.xcllnt.net> References: <200302280324.h1S3OndV078007@freefall.freebsd.org> <20030227223058.G93968@espresso.bsdmike.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227223058.G93968@espresso.bsdmike.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 10:30:58PM -0500, Mike Barcroft wrote: > > Most of these could probably be implemented in terms of the __bswap*() > functions in , except for vendor sources like > openssl, and htonl and ntohl which already are. I'm not sure if there > would be an advantage to moving the geom byte ordering functions to > (I guess phk didn't either). The geom functions serve a primary purpose of dealing with random alignment of fields. The endianness has been added later, so they now serve a dual function. Do not unify them with byte-order only functions. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message