FreeBSD numerics - cpow()

Montgomery-Smith, Stephen stephen at missouri.edu
Tue Feb 14 05:53:13 UTC 2017


On 02/13/2017 11:37 PM, Peter Jeremy wrote:
> On 2017-Feb-13 09:10:51 -0700, Alan Braslau <alan.braslau at comcast.net> 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.
> 

If you look at page 478 of the document
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf (which is, I
think, the official C99 standard), the footnote suggests that this would
be a reasonable thing to do.

So I say yes, let's do it.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-numerics/attachments/20170214/0df126d8/attachment.sig>


More information about the freebsd-numerics mailing list