From owner-freebsd-standards@FreeBSD.ORG Mon Feb 14 09:48:30 2011 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D42971065679 for ; Mon, 14 Feb 2011 09:48:30 +0000 (UTC) (envelope-from murray@stokely.org) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 88AD98FC22 for ; Mon, 14 Feb 2011 09:48:30 +0000 (UTC) Received: by iyb26 with SMTP id 26so4658635iyb.13 for ; Mon, 14 Feb 2011 01:48:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.171.73 with SMTP id i9mr4647806icz.116.1297675125705; Mon, 14 Feb 2011 01:18:45 -0800 (PST) Received: by 10.231.199.11 with HTTP; Mon, 14 Feb 2011 01:18:45 -0800 (PST) In-Reply-To: <20110207200839.GA82306@zim.MIT.EDU> References: <4D4EF746.9070502@gwdg.de> <20110207200839.GA82306@zim.MIT.EDU> Date: Mon, 14 Feb 2011 01:18:45 -0800 Message-ID: From: Murray Stokely To: Rainer Hurling , freebsd-standards@freebsd.org, Murray Stokely Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Support for C99 complex type required X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 09:48:30 -0000 On Mon, Feb 7, 2011 at 12:08 PM, David Schultz wrote: > The 'complex' type and rudimentary operations on complex numbers > are supported, but the math library is missing all of the > transcendental functions on complex numbers. =A0There is some > ongoing work in the area, but due to time constraints, it will > likely be a while before we have complete support. =A0In the mean > time, you can see /usr/include/complex.h for a list of supported > functions. =A0I recall someone mentioning that there is a port that > provides most of the missing functionality. Hi David, Is there any reason we can't pull in these missing libm routines from NetBSD? They seem to have pulled in code from netlib and gotten permission to relicense it under the BSD license. E.g. here is one of the functions our FreeBSD 9 libm still lacks AFAICT: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/cexp.c?only_with= _tag=3DMAIN Also, Darwin seems to have picked up much of there C99 math support from NetBSD as well, although it appears they've added more under an APSL license and they provide assembly language code for Intel, Arm, and PowerPC : http://www.opensource.apple.com/source/Libm/Libm-315/Source/Intel/ http://www.opensource.apple.com/source/Libm/Libm-315/Source/complex.h Pulling in the APSL code may be a bit more controversial (though I think warranted), but pulling in code from NetBSD seems like a no brainer given that this standard is over a decade old and modern software like Mplayer, R, etc depend on the newer C99 functions. Does the ongoing work in this area you describe involve porting the NetBSD code or are you talking about another implementation? - Murray