From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 23 18:01:19 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 568E2106564A for ; Mon, 23 Mar 2009 18:01:19 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 171D78FC16 for ; Mon, 23 Mar 2009 18:01:18 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n2NI3RC0009032; Mon, 23 Mar 2009 14:03:27 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n2NI3RRn009031; Mon, 23 Mar 2009 14:03:27 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Mon, 23 Mar 2009 14:03:27 -0400 From: David Schultz To: Alexander Sack Message-ID: <20090323180327.GA8943@zim.MIT.EDU> Mail-Followup-To: Alexander Sack , FreeBSD Hackers References: <3c0b01820903230930q1b54f9a5p38f4d6d230a350c7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c0b01820903230930q1b54f9a5p38f4d6d230a350c7@mail.gmail.com> Cc: FreeBSD Hackers Subject: Re: Long double support in FreeBSD? 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: Mon, 23 Mar 2009 18:01:19 -0000 On Mon, Mar 23, 2009, Alexander Sack wrote: > I'm working with building the Boost libraries and Boost.Math has long > double support stubbed out for FreeBSD (personally I don't need it > but..). I believe looking at some historical threads about this over > the weekend and a lot of it was due to compiler GNUish bugs handling > long double math (I believe Bruce Evans had some patches at one point > but mentioned it was still crappy). > > Can someone speak if the current compiler/BSD flavors support long > double math on a 64-bit capable CPU (LM=1)? Long doubles are supported, except that long double versions of the following libm functions are missing: acoshl asinhl atanhl cbrtl coshl erfcl erfl expl expm1l lgammal log10l log1pl log2l logl powl sinhl tanhl tgammal The only other caveat is that on i386 we set the FPU to 53-bit precision so that gcc produces saner results in double precision. (See the archives for the gruesome details.) Of course, if you're running FreeBSD/amd64 on a 64-bit machine, this doesn't apply.