From owner-freebsd-numerics@freebsd.org Tue Feb 14 06:03:22 2017 Return-Path: Delivered-To: freebsd-numerics@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AB15CDEC65 for ; Tue, 14 Feb 2017 06:03:22 +0000 (UTC) (envelope-from alan.braslau@comcast.net) Received: from resqmta-po-10v.sys.comcast.net (resqmta-po-10v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA9B91946 for ; Tue, 14 Feb 2017 06:03:21 +0000 (UTC) (envelope-from alan.braslau@comcast.net) Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-10v.sys.comcast.net with SMTP id dWClcUuVmOhhfdWCtcrZCK; Tue, 14 Feb 2017 06:03:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1487052199; bh=NIGN96KbuniZ1oGLsF5w8u62liuD2Lr62GxGnQXgCDs=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type; b=j4IMsmtpgLRsOqAowJcZF6WTy4/jn2lT3AtNiHzmDZAFOJ4M1MitBICqdGAjsa+mt P18q24T3ziQhqgVIxtxIzsqCFpu90B177l8F6iJohXk6L86SWxlKbTbnBs6BwAQ5iz 7Rn09lbuAYBua2eLN6GbCwZgSIQrKhqYvdH5eGZbYbhvQm9QZeKhRkeLMX2RMLT7vU 1Wx3azr/ULfzMMdAFijv8ezjqMORHqYzOyperzBtgDF6g36rj6x+f1b5/KZ5gaFQ3G 6960o4KSOWEIUA1iNPmZOz0AXRzUdc09OHmPl3PRa3H+QT76krmvte8mf7lex8s44f yYOtDVIfNazvw== Received: from zoo.hsd1.co.comcast.net ([IPv6:2601:282:8000:7637:852b:14c4:5e3a:57c]) by resomta-po-18v.sys.comcast.net with SMTP id dWCrcnfDYCvcHdWCrcUUBy; Tue, 14 Feb 2017 06:03:18 +0000 Date: Mon, 13 Feb 2017 23:03:16 -0700 From: Alan Braslau To: Peter Jeremy Cc: freebsd-numerics@freebsd.org Subject: Re: FreeBSD numerics - cpow() Message-ID: <20170213230316.0816c89d@zoo.hsd1.co.comcast.net> In-Reply-To: <20170214053712.GD84013@server.rulingia.com> References: <20170213091051.600f91e1@zoo.hsd1.co.comcast.net> <20170214053712.GD84013@server.rulingia.com> Organization: BARN Innovation, LLC X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-apple-darwin16.3.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfLvoQKXeNDwYszi3H0HiKCN7ks6y7cQZSnC782GSknk8asa9BDOjRmh0+Dfs4AfFr0v4WrO9eErielvXlqnVBpbkMBrer384V82JSIlRj5qgy8sHEOtq EuCYSEeUDGz6O7qFOZosJBn+Hsm2s/ZTPM+jeI/LCCOgjqFJFCH0pM5RyGwMU8eJbKheIvZH+PBobAlMfaPQWshyDOnzfWAg/Yk= X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.23 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, 14 Feb 2017 06:03:22 -0000 On Tue, 14 Feb 2017 16:37:12 +1100 Peter Jeremy wrote: > On 2017-Feb-13 09:10:51 -0700, Alan Braslau > wrote: > >What is the current status of getting cpow() implemented in FreeBSD? > > There's a WIP in https://svnweb.freebsd.org/base/user/peterj/ > but I got caught up trying to work out how to perfectly multiply > two doubles and am not currently working on it. > > I wonder if we should implement something like > > double cpow(double x, double y) > { > return cexp(y * clog(x)); > } > > just to have something to resolve symbols. > Hello, I do not know anything about the issues behind this. In compiling luatex (that now includes luaffi), we ran into problems on FreeBSD, although none on OpenBSD, MacOS or linux. It should not matter how cpow() is implemented (for us at least), and the above suggestion to resolve symbols would work. I do not believe that we make any use of this call, but it is there, part of luaffi. In fact, our present solution is to throw-out *all* of complex.h, as has to be done for Windows (how embarrassing). Thank you for your rapid response and please let me know what, if anything, you all decide. Alan -- Alan Braslau 816 West Mountain Avenue Fort Collins, CO 80521 USA mobile: (970) 237-0957 Conserve energy! ;-)