From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 23 18:22:11 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 A7D14106567A for ; Mon, 23 Mar 2009 18:22:11 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 628C38FC2D for ; Mon, 23 Mar 2009 18:22:11 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so1335488ywh.13 for ; Mon, 23 Mar 2009 11:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=j6soVvfHz4nXI63I1cTnaXJTGcXKa3o3+ws/wkdJ2so=; b=oVeieS5CYoWIP/44cwb43rtqtXCPzUP3nsQS5BkL10fGA1ErJM014GGLxcowD1lsMF 1DkYcJpZSFmnKtRkCoLSQ6+AObuCg1kHIZxdQb0cvoUaoGYXu1bpQvZaUOlWj0S30ac8 i/JWz0E+/eUnTa0mr9HQpYsvynE2wqt+tZB6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RQOGfJgZ85kDMhrMDnGSkY07rwvFzKyHj3EwGqhadbsR2bLvBeEylRtijlcvwEapIC pnth/FdGJNxq/A25astDIK7RhMA6MEz/9J87MsFaRpYTOGWAYLRZvqHdmmsbY8uwEVMy mIJHBEL1IdRthEvCTNK1/oxELV8gj0sPb+USo= MIME-Version: 1.0 Received: by 10.100.105.9 with SMTP id d9mr6734499anc.142.1237832530871; Mon, 23 Mar 2009 11:22:10 -0700 (PDT) In-Reply-To: <20090323180327.GA8943@zim.MIT.EDU> References: <3c0b01820903230930q1b54f9a5p38f4d6d230a350c7@mail.gmail.com> <20090323180327.GA8943@zim.MIT.EDU> Date: Mon, 23 Mar 2009 14:22:10 -0400 Message-ID: <3c0b01820903231122mb763be4geb07cafecc80db1b@mail.gmail.com> From: Alexander Sack To: Alexander Sack , FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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:22:12 -0000 On Mon, Mar 23, 2009 at 2:03 PM, David Schultz wrote: > 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..). =A0I 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=3D1)? > > Long doubles are supported, except that long double versions of > the following libm functions are missing: > > =A0 =A0acoshl asinhl atanhl cbrtl coshl erfcl erfl expl expm1l > =A0 =A0lgammal 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. > Thank you so much David, that is what I needed to know (I just thought asking would be easier in this case than trying to parse through the many threads over the past about this topic). -aps