From owner-freebsd-numerics@FreeBSD.ORG Tue May 21 06:01:13 2013 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CB1B8B4C; Tue, 21 May 2013 06:01:13 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 38D9C1CF; Tue, 21 May 2013 06:01:12 +0000 (UTC) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id r4L61C3v017277; Tue, 21 May 2013 16:01:12 +1000 Received: from c122-106-156-23.carlnfd1.nsw.optusnet.com.au (c122-106-156-23.carlnfd1.nsw.optusnet.com.au [122.106.156.23]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id r4L611Jr018052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 May 2013 16:01:04 +1000 Date: Tue, 21 May 2013 16:01:01 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Steve Kargl Subject: Re: C99 Long Double Math Functions In-Reply-To: <20130519170901.GA96649@troutmask.apl.washington.edu> Message-ID: <20130521151407.L1076@besplex.bde.org> References: <20130519170901.GA96649@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=e4Ne0tV/ c=1 sm=1 a=XUiGcGvH_TIA:10 a=kj9zAlcOel0A:10 a=PO7r1zJSAAAA:8 a=JzwRw_2MAAAA:8 a=tJ8Aknsx7QsA:10 a=h8kA8E1_rniwYnuUX4gA:9 a=CjuIK1q_8ugA:10 a=ebeQFi2P/qHVC0Yw9JDJ4g==:117 Cc: "freebsd-numerics@freebsd.org" , David Chisnall 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: Tue, 21 May 2013 06:01:13 -0000 On Sun, 19 May 2013, Steve Kargl wrote: > On Sun, May 19, 2013 at 12:10:28PM -0400, David Chisnall wrote: >> Hi Everyone, >> >> In February, lots of people had code ready to commit for the C99 long double math.h functions. This code is still not in and is an increasingly serious problem for a lot of software. Two weeks from today, I will commit a patch that just calls the double versions of these for all of the long double functions. If you have a better implementation of any of them, please commit it before then. Style nits can be worked out later. Small bugs in corner cases can also be fixed later: it is far worse for us to have no implementation of these than to have a slightly buggy one, because it just drives people to use platforms that have very buggy versions of them instead of FreeBSD. >> >> David Please use the unix newline in mail. History shows that style nits rarely get worked out later, and usually increase. > Unfortunately, life gets in the way of hacking on FreeBSD. However, > it so happens that I'll be sending a patch to das@ in early June > with an expl() update and an implementation for expm1l(). Unfortunately, das@ has been inactive since he got his PhD. I spent a half of yesterday so retesting libm for correctness and cleaning up log*. Style problems in log* currently include its layering. I am now trying hacks like multiple includes of __FILE__ to avoid pessimizations and complications from using inline functions. These give worse layering and different complications. If you promise to fix the style "nits" in this (move 100K of code around to perfect places), then it is committable as it is. Bruce