From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 18:26:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 486E116A41F for ; Fri, 30 Dec 2005 18:26:30 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D0F43D72 for ; Fri, 30 Dec 2005 18:26:16 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail25.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id jBUIQDiN022055 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 31 Dec 2005 05:26:14 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id jBUIQDHh040397; Sat, 31 Dec 2005 05:26:13 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id jBUIQCL8040396; Sat, 31 Dec 2005 05:26:12 +1100 (EST) (envelope-from pjeremy) Date: Sat, 31 Dec 2005 05:26:12 +1100 From: Peter Jeremy To: Steve Kargl Message-ID: <20051230182611.GD36631@cirb503493.alcatel.com.au> References: <20051229224626.GA4823@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051229224626.GA4823@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc Cc: freebsd-hackers@freebsd.org Subject: Re: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 18:26:30 -0000 On Thu, 2005-Dec-29 14:46:26 -0800, Steve Kargl wrote: >I have implementations for sqrtl and logl, which can be added >to libm. In limited testing on AMD64 , I find > >troutmask:kargl[208] ./test_sqrt > float double long double >MRE: 8.953800e-08 1.664855e-16 1.084202e-19 >DDP: 7.05 15.78 18.96 >BDP: 23.41 52.42 63.00 ... >MRE = maximum relative error between a value from my routine and > a value computed using GMP/MPFR with 64-bits of precision. Given that long double has 64 bits of precision, is testing it against a 64-bit test library adequate? And what is the accuracy of your test library? -- Peter Jeremy