This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: newlib?: pow function can produce incorrect results.
- From: "Cary R." <cygcary at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 2 May 2007 10:22:03 -0700 (PDT)
- Subject: Re: newlib?: pow function can produce incorrect results.
One thing to keep in mind is that I was encouraged to submit patches to
make the newlib functions match the glibc implementation not the standard.
Which I don't currently have access to.
> Other potentially controversial special cases (may or may not be
> handled correctly by newlib -- I didn't check) are:
> atan2(+-0,-0)=+-pi
> atan2(+-0,+0)=+-0
newlib and my version of glibc return +0 for all these cases.
> hypot(+-inf,y)=+inf, even for y=NaN
> fmax(x,NaN)=fmax(NaN,x)=fmin(x,NaN)=fmin(NaN,x)=x
newlib gets these right.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/