From owner-freebsd-current@FreeBSD.ORG Fri Jul 13 15:34:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74839106568F; Fri, 13 Jul 2012 15:34:46 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (unknown [IPv6:2620:64:0:1:223:7dff:fea2:c8f2]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC748FC15; Fri, 13 Jul 2012 15:34:46 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 9DAAD2AA471; Fri, 13 Jul 2012 09:34:45 -0600 (MDT) Received: by night.db.net (Postfix, from userid 1000) id DCD401DAF2; Fri, 13 Jul 2012 10:34:37 -0500 (EST) Date: Fri, 13 Jul 2012 10:34:37 -0500 From: Diane Bruce To: David Chisnall Message-ID: <20120713153437.GA47229@night.db.net> References: <20120529045612.GB4445@server.rulingia.com> <20120711223247.GA9964@troutmask.apl.washington.edu> <20120713114100.GB83006@server.rulingia.com> <201207130818.38535.jhb@freebsd.org> <9EB2DA4F-19D7-4BA5-8811-D9451CB1D907@theravensnest.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9EB2DA4F-19D7-4BA5-8811-D9451CB1D907@theravensnest.org> User-Agent: Mutt/1.4.2.3i Cc: Diane Bruce , freebsd-current@freebsd.org, Steve Kargl , David Schultz , Peter Jeremy , Warner Losh Subject: Re: Use of C99 extra long double math functions after r236148 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 15:34:46 -0000 On Fri, Jul 13, 2012 at 01:53:39PM +0100, David Chisnall wrote: > On 13 Jul 2012, at 13:18, John Baldwin wrote: > > > On Friday, July 13, 2012 7:41:00 am Peter Jeremy wrote: > >> AFAIK, none of the relevant standards (POSIX, IEEE754) have any > >> precision requirements for functions other than +-*/ and sqrt() - all > >> of which we have correctly implemented. I therefore believe that, for > >> the remaining missing functions, the Project would be best served by > >> committing the best code that is currently available under a suitable > >> license and cleaning it up over time (as was done for the current > >> libm). > > > > I concur. > > As do I. I'd also point out that the ONLY requirement for long double according to the standard is that it has at least the same precision as double. Therefore, any implementation of these functions that is no worse that the double version is compliant. Once we have something meeting a minimum standard, then I'm very happy to see it improved, but having C99 functions missing now is just embarrassing while we're working on adding C11 features. > I'd be curious how well the GPL functions in Linux compare to the NetBSD functions. I don't suppose we could grab some of the public domain routines in NetLib? > David > > P.S. Someone said earlier that our clang still lacks some C99 features. Please point me at the relevant clang PRs and I'll be happy to work on them. There are quite a few open issues for C11 support, but C99 is, as far as I know, done. Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db Nowadays tar can compress using yesterdays latest technologies!