FreeBSD numerics - cpow()

Montgomery-Smith, Stephen stephen at
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> wrote:
>> What is the current status of getting cpow() implemented in FreeBSD?
> There's a WIP in
> 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 (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: <>

More information about the freebsd-numerics mailing list