Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: missing math function



On Wed, Feb 20, 2013 at 11:55:09AM +0000, Patrick Welche wrote:
> On Mon, Feb 18, 2013 at 09:29:31PM +0100, Joerg Sonnenberger wrote:
> > On Mon, Feb 18, 2013 at 09:46:28PM +0200, Jukka Ruohonen wrote:
> > > On Mon, Feb 18, 2013 at 06:16:56PM +0000, Patrick Welche wrote:
> > > > After nearbyint, I think a few more math functions need importing.
> > > > 
> > > > I just tried to compile pkgsrc/lang/R, and discovered
> > > 
> > > Does R actually use long double? I think not.
> > 
> > It has incorrect configure tests for the existance of the math
> > functions. GCC (and clang for that matter) can do build time constant
> > folding the way it is done.
> 
> I shouldn't have mentioned R. Why does math.h contain
> 
> long double     powl(long double, long double);
> 
> if there is no implementation of powl on the system? Or is there one which
> I am missing?

Some platforms have double == long double, so powl is effectively an
alias for pow on those.

Joerg


Home | Main Index | Thread Index | Old Index