From owner-freebsd-numerics@FreeBSD.ORG Mon Nov 4 11:06:53 2013 Return-Path: Delivered-To: freebsd-numerics@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A40796E3 for ; Mon, 4 Nov 2013 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 911EC2C41 for ; Mon, 4 Nov 2013 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rA4B6rf4048468 for ; Mon, 4 Nov 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rA4B6rle048466 for freebsd-numerics@FreeBSD.org; Mon, 4 Nov 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Nov 2013 11:06:53 GMT Message-Id: <201311041106.rA4B6rle048466@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-numerics@FreeBSD.org Subject: Current problem reports assigned to 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: Mon, 04 Nov 2013 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/175811 numerics libstdc++ needs complex support in order use C99 o bin/170206 numerics [msun] [patch] complex arcsinh, log, etc. o stand/82654 numerics C99 long double math functions are missing 3 problems total. From owner-freebsd-numerics@FreeBSD.ORG Sat Nov 9 18:27:48 2013 Return-Path: Delivered-To: freebsd-numerics@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 ESMTP id B13BF6AD; Sat, 9 Nov 2013 18:27:48 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) 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 8F6CC2C47; Sat, 9 Nov 2013 18:27:45 +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 rA9IRZD1078745; Sat, 9 Nov 2013 10:27:35 -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 rA9IRZ3u078744; Sat, 9 Nov 2013 10:27:35 -0800 (PST) (envelope-from sgk) Date: Sat, 9 Nov 2013 10:27:35 -0800 From: Steve Kargl To: David Schultz Subject: Re: MUSL math functions Message-ID: <20131109182735.GA78719@troutmask.apl.washington.edu> References: <20131031133352.GA59918@troutmask.apl.washington.edu> <20131101072032.P1002@besplex.bde.org> <20131108085039.GA1821@zim.MIT.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131108085039.GA1821@zim.MIT.EDU> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-numerics@FreeBSD.org" , David Chisnall , Bruce Evans 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: Sat, 09 Nov 2013 18:27:48 -0000 On Fri, Nov 08, 2013 at 12:50:39AM -0800, David Schultz wrote: > On Fri, Nov 01, 2013, Bruce Evans wrote: I wrote: >>> Have you looked at the code? Hint, I have. Here's ccoshl(). >>> >>> #include "libm.h" >>> >>> //FIXME >>> long double complex ccoshl(long double complex z) >>> { >>> return ccosh(z); >>> } > > Is there anything usable in there? Thanks for the pointer in any case! I haven't found anything usable. Many of the musl files have FreeBSD ident strings. I should note that either musl or openlibm have some assembly files, but I haven't read them. These might use newer cpu-specific instructions. >>> Yes. I object to importing anything from MUSL or OpenBSD or NetBSD >>> without review or testing. It also appears that these functions are >>> only available for ld80 archs. FreeBSD has both ld80 and ld128. >> >> Supporting ld128 can be a blocker. Apart from increasing the amount of >> code needed, the extra precision sometimes expands the technical >> complications a lot. > > I think I was the one who proposed several years ago that we > should develop the ld80 and ld128 versions at the same time > because (a) it's more efficient to do both while you have the > algorithm in your head and (b) the ld128 versions probably would > never happen otherwise. At first I was hesitant to do ld128 (mostly because of access to hardware), but now it forces me to think about the algorithms. ld80 on i386 has to deal with problems with FP_PE. -- Steve