From owner-freebsd-standards@FreeBSD.ORG Sun Dec 9 21:49:55 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CBD216A417 for ; Sun, 9 Dec 2007 21:49:55 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.freebsd.org (Postfix) with ESMTP id 3D69F13C467 for ; Sun, 9 Dec 2007 21:49:55 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.14.2/8.14.1) with ESMTP id lB9LnRf6009881; Sun, 9 Dec 2007 16:49:27 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.14.2/8.14.1/Submit) id lB9LnRXH009880; Sun, 9 Dec 2007 16:49:27 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Sun, 9 Dec 2007 16:49:27 -0500 From: David Schultz To: Bruce Evans Message-ID: <20071209214927.GB9698@VARK.MIT.EDU> Mail-Followup-To: Bruce Evans , Steve Kargl , freebsd-standards@FreeBSD.ORG References: <20071012180959.GA36345@troutmask.apl.washington.edu> <20071206090833.GA95428@VARK.MIT.EDU> <20071206231143.GA63969@troutmask.apl.washington.edu> <20071207173222.D702@delplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071207173222.D702@delplex.bde.org> Cc: freebsd-standards@FreeBSD.ORG, Steve Kargl Subject: Re: [PATCH] hypotl, cabsl, and code removal in cabs X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Dec 2007 21:49:55 -0000 On Fri, Dec 07, 2007, Bruce Evans wrote: > >As to the sqrtl question, I have an implementation that supposely > >does correct rounding in all rounding modes. It is restricted to > >64-bit significand long doubles. The code does not use bit twiddle; > >instead, it uses fenv. > > This I haven't looked at closely. I fear extreme slowness. [...] > Anyway, the software version of sqrtl is irrelevant on > athlon-xp, since athlon-xp has sqrtl in hardware (takes 35 cycles). > Similarly for amd64, ia64 and possibly sparc64 (sparc64 has sqrt in > hardware so it hopefully has sqrtl in hardware). arm and powerpc > apparently have long double == double, so the software version of sqrtl > is apparently only needed on ia64. In general, even if we don't use it on any architectures that FreeBSD currently supports, I'd like to have a working MI implementation checked in before we add a bunch of MD versions. Otherwise we risk overburdening people trying to port FreeBSD to new architectures. Having an MI version makes cross-testing easier, too. In the specific case of sqrt, pretty much everyone who claims to support IEEE 754 floating point is going to have hardware support for it, so maybe we can get away with a bunch of MD versions alone if we have to... For ia64, we can use Intel's BSD-licensed math lib.