This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]