From owner-svn-src-head@FreeBSD.ORG Sat Nov 13 16:46:46 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85ABD1065672; Sat, 13 Nov 2010 16:46:46 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1238FC1A; Sat, 13 Nov 2010 16:46:46 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.4/8.14.4) with ESMTP id oADGkj6T069663; Sat, 13 Nov 2010 08:46:45 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.4/8.14.4/Submit) id oADGkj93069662; Sat, 13 Nov 2010 08:46:45 -0800 (PST) (envelope-from sgk) Date: Sat, 13 Nov 2010 08:46:45 -0800 From: Steve Kargl To: Alexander Best Message-ID: <20101113164645.GB69612@troutmask.apl.washington.edu> References: <201011131054.oADAsA7I045096@svn.freebsd.org> <20101113125648.GA25183@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101113125648.GA25183@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Ulrich Spoerlein Subject: Re: svn commit: r215237 - head/lib/msun/src X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2010 16:46:46 -0000 On Sat, Nov 13, 2010 at 12:56:48PM +0000, Alexander Best wrote: > On Sat Nov 13 10, Ulrich Spoerlein wrote: > > Author: uqs > > Date: Sat Nov 13 10:54:10 2010 > > New Revision: 215237 > > URL: http://svn.freebsd.org/changeset/base/215237 > > > > Log: > > Fix bug in jn(3) and jnf(3) that led to -inf results > > thank you very much for fixing this long outstanding issue. > you might want to have a look at [1], where two more issues have been reported. > > cheers. > alex > > [1] http://mailman.oakapple.net/pipermail/numeric-interest/2010-September/thread.html > Ulrich, thanks. Of the two remaining issues, I can verify one is indeed an issue. laptop:kargl[204] cat mn.c #include #include static const double z = 0.; int main(void) { double x, y; x = -1. / z; y = exp( 0.5 * log(x)); printf("pow(%f, 0.5) = %le, %le\n", x, pow(x, 0.5), y); y = exp(-0.5 * log(x)); printf("pow(%f, -0.5) = %le, %le\n", x, pow(x, -0.5), y); return 0; } laptop:kargl[205] cc -o z mn.c -fno-builtin -lm && ./z pow(-inf, 0.5) = inf, nan pow(-inf, -0.5) = 0.000000e+00, nan -- Steve