From owner-freebsd-current@FreeBSD.ORG Wed Jan 29 17:23:25 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84831779 for ; Wed, 29 Jan 2014 17:23:25 +0000 (UTC) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 597311184 for ; Wed, 29 Jan 2014 17:23:25 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.7/8.14.7) with ESMTP id s0THN9Qe088829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Jan 2014 09:23:09 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.7/8.14.7/Submit) id s0THN7hf088828; Wed, 29 Jan 2014 09:23:07 -0800 (PST) (envelope-from sgk) Date: Wed, 29 Jan 2014 09:23:07 -0800 From: Steve Kargl To: Dmitry Marakasov Subject: Re: libm lacks C99 functions -> no c++11 cmath in libstdc++ Message-ID: <20140129172307.GA88757@troutmask.apl.washington.edu> References: <20140129164136.GA3489@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140129164136.GA3489@hades.panopticon> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 29 Jan 2014 17:23:25 -0000 On Wed, Jan 29, 2014 at 08:41:36PM +0400, Dmitry Marakasov wrote: > > Gerald haven't responded yet, so I though I'd better post in on the > list as well for wider discussion. > > In short: > - our libm lacks some C99 functions: erfl erfcl lgammal tgammal I have code for erfl and erfcl, and I've done some work on lgammal. See freebsd-numerics list archive. No, I do not have an ETA for when the code may land in the tree. > - bad enough by itself, it affects libstdc++ from ports' gcc in such a > way that it disables C++11 math completely (along with a lot more > other more widely used math functions) > > > - we may probably implement these by calling less-precise > erf erfc lgamma tgamma as we do with other functions as we alredy > do with some others This, unfortuantely, has already been done, although it may only be available in FreeBSD-current. See src/lib/msun/src/imprecise.c. -- Steve