From owner-freebsd-current@FreeBSD.ORG Thu Jan 22 03:41:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50C2E16A4CE for ; Thu, 22 Jan 2004 03:41:53 -0800 (PST) Received: from web25109.mail.ukl.yahoo.com (web25109.mail.ukl.yahoo.com [217.12.10.57]) by mx1.FreeBSD.org (Postfix) with SMTP id 10B7543D3F for ; Thu, 22 Jan 2004 03:41:49 -0800 (PST) (envelope-from rmhlldr@yahoo.co.uk) Message-ID: <20040122114148.16996.qmail@web25109.mail.ukl.yahoo.com> Received: from [194.44.215.99] by web25109.mail.ukl.yahoo.com via HTTP; Thu, 22 Jan 2004 11:41:48 GMT Date: Thu, 22 Jan 2004 11:41:48 +0000 (GMT) From: =?iso-8859-1?q?RMH?= To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 22 Jan 2004 05:07:24 -0800 Subject: Re: historical stuff in math(3) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rhett@alasir.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 11:41:53 -0000 Peter Jeremy wrote: > > On Wed, Jan 21, 2004 at 06:41:49AM -0500, Thomas David Rivers wrote: > >> Isn't all the vax-D format related stuff math(3) getting pretty old ? > > > > It's very similar to the IBM mainframe format. So, a port > > of FreeBSD to the IBM mainframe could still use it. (The VAX > > format was just a copy of the IBM one with an extra precision bit > > thrown in every now-and-then.) > > Not really. The IBM S/360 uses base-16 whereas virtually everyone > else (including VAX) uses binary. The S/360 double precision format > has a 14-digit (56-bit) fraction (no implicit digit), a fraction sign > and a 7-bit signed exponent. The VAX-D documentation in math(3) is > totally irrelevant to the S/360. Any serious math library would need > significant re-work to handle the increased range and reduced/variable > precision. > > Someone else mentioned the Alpha - VAX-format FP is specified in > the architecture to simplify migration from the VAX. The early chips > included it in hardware - do the recent chips still include it? > All 21264 CPUs (EV6, EV67, EV68, EV68AF, EV68CB, and EV68DC) support 32-bit and 64-bit VAX F, G, and D floating-point formats, in addition to IEEE formats. You probably mean VAX-F format; it's supported fully. VAX-D has a limited support, but still available. Besides, all Alpha floating-point instructions are separated as IEEE, VAX, and independent. Thus, it's not a good idea to remove any of VAX floating-point formats from math(3). --- Regards, Rhett ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html