From owner-cvs-all@FreeBSD.ORG Tue Apr 1 12:05:10 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5506137B401; Tue, 1 Apr 2003 12:05:10 -0800 (PST) Received: from cirb503493.alcatel.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F5143FDF; Tue, 1 Apr 2003 12:05:06 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h31K54M2030313; Wed, 2 Apr 2003 06:05:04 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h31K4vEN030309; Wed, 2 Apr 2003 06:04:57 +1000 (EST) Date: Wed, 2 Apr 2003 06:04:57 +1000 From: Peter Jeremy To: Alexander Leidinger Message-ID: <20030401200457.GA30284@cirb503493.alcatel.com.au> References: <200303272038.h2RKcM7L096560@repoman.freebsd.org> <20030327204935.GA18134@HAL9000.homeunix.com> <20030330175646.281097ad.Alexander@Leidinger.net> <20030331082023.GE11307@cirb503493.alcatel.com.au> <20030401172440.701aaafd.Alexander@Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030401172440.701aaafd.Alexander@Leidinger.net> User-Agent: Mutt/1.4.1i cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/ia64/include float.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 20:05:10 -0000 On Tue, Apr 01, 2003 at 05:24:40PM +0200, Alexander Leidinger wrote: >On Mon, 31 Mar 2003 18:20:23 +1000 >Peter Jeremy wrote: > >> It's not clear exactly what this program is intended to test. > >We noticed that icc does use other values for LDBL_MIN than we do, and >instead of just thinking that Intel does it right I wanted to verify it. >So I started with tests for float and double. The actual digit string forming the constants is not especially important - as long as the compiler interprets that string as the correct FP value. There are a number of test programs intended to verify correct FP behaviour by the CPU and compiler floating around on the net - look at NETLIB or Prof W. Kahan's web site. (I don't have the URL's immediately to hand). >> > The *_MIN >> >values (or my test program) at least on i386 machines are wrong. >> >> The *_MIN values represent the greatest negative value, not the >> smallest positive value. > >*_MIN _is_ the smallest positive value... but the normalized one, not >the denormalized one I use. Mea culpa. I must have disconnected my brain when I was writing that :-(. Peter