From owner-freebsd-numerics@FreeBSD.ORG Thu May 30 19:44:00 2013 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BFB419D for ; Thu, 30 May 2013 19:44:00 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm38-vm1.bullet.mail.ne1.yahoo.com (nm38-vm1.bullet.mail.ne1.yahoo.com [98.138.229.145]) by mx1.freebsd.org (Postfix) with ESMTP id 70C3A136 for ; Thu, 30 May 2013 19:44:00 +0000 (UTC) Received: from [98.138.90.50] by nm38.bullet.mail.ne1.yahoo.com with NNFMP; 30 May 2013 19:43:54 -0000 Received: from [98.138.226.63] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 30 May 2013 19:43:54 -0000 Received: from [127.0.0.1] by smtp214.mail.ne1.yahoo.com with NNFMP; 30 May 2013 19:43:54 -0000 X-Yahoo-Newman-Id: 290118.23681.bm@smtp214.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: DAxlDJAVM1kUk.zJqk8IuYUBgsk_lxZ1KTr5UNtnK7jr9uU uM48rCnNJr7M6M0lsK6ut7vCuicK86y_14.m0lq3VfD39jJJZH8mcwrJq.S6 z5RHMRYHH5QrfVb1Cv69vHnSKlGaXPscHpds8CIfSL2bW28IfMNFaRNLqZls 4WFD8YgFOcPkmc.gPj0a65MKvlDWMXxkhiEcxqmnDpB2YKeRUf.n4kA6i4dr iHnTxteidqstQnOwm1UPcyy0xChMfsJ2wq9GLhcgSRzma1vWPrufHBRGOmSq VNZGb21QFRL4OA5gLwrJ.mopMkOyRHGKbqcVAnZvze.P1Habbua82ykfeAFv e71qqI3B9QsEkeZkfiVKzuDgYMObD.Om1hW.he4DxrcYiPB_NyneTl3sBVmB ZT_h7QmjU_jEfStf1uZ0Ugsl1oid8RtK.ggAmXpa9Ut6YZjH.6m5wlnymCOi _tYtsTKcF5ekaskpxWbtQhZYP0hvvz8XXxaL_0QnnhMyNpge6g_9.kTeA X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with ) by smtp214.mail.ne1.yahoo.com with SMTP; 30 May 2013 12:43:54 -0700 PDT Message-ID: <51A7ABF7.6060807@FreeBSD.org> Date: Thu, 30 May 2013 14:43:51 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130407 Thunderbird/17.0.5 MIME-Version: 1.0 To: Steve Kargl Subject: Re: standards/175811: libstdc++ needs complex support in order use C99 References: <201302040328.r143SUd3039504@freefall.freebsd.org> <510F306A.6090009@missouri.edu> <20130530064635.GA91597@zim.MIT.EDU> <51A77324.2070702@FreeBSD.org> <20130530171348.GA67170@troutmask.apl.washington.edu> In-Reply-To: <20130530171348.GA67170@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Montgomery-Smith , freebsd-numerics@freebsd.org X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 19:44:00 -0000 ( I stripped a bit the CC list ) On 30.05.2013 12:13, Steve Kargl wrote: > On Thu, May 30, 2013 at 10:41:24AM -0500, Pedro Giffuni wrote: >> I may be wrong but with long double support people that >> need erfcl() and tgamma() can get them from boost. >> The problem is therefore not implementing everything but >> getting enough to turn on the features supported by >> libstdc++ and boost. >> > Of course, you're wrong. :-) :-) <-- Note smileys. And I knew I could be likely wrong from the start ;). > C99 defines many long double functions. Anyone wanting > to use C and libm, and not C++ and boost, will need > quality implementations of these functions. Of course, > the lack of any actual C99 compiler tends to dampen > this argument. > > What I find appalling is reading "people are tired > of the situation with libm, so I'm going to commit > some atrocious hack". The proper response should be > "so I'm going to help implement and test the missing > functionality". It's unfortunate that only a few > individuals are working to fix libm, but such is > life. > I guess I was trying to hint that Boost is a good place to look at to get ideas for the implementations for such stuff. Stephen knows this well though since he actually fixed some complex functions in boost :). The implementations of erfc and tgamma in OpenOffice are based on the Boost code with the important difference that boost does the automatic type promotion when they can. FWIW, I was about to change OpenOffice to use boost but then I noticed that the type promotion doesn't work on FreeBSD (due to the lack of long double math) so in general there was not much gain in changing the status quo. Pedro.