Re: math error reporting

2012-03-12 Thread Bruno Haible
Bastien ROUCARIES wrote (about the 'errno' convention for math functions): > > If glibc does not support this error reporting convention, I think there's > > not much point for gnulib to do it. > > We must a least document it. I have been beaten by y0 underflow a few times... A doc patch is welco

Re: math error reporting

2012-03-12 Thread Bastien ROUCARIES
On Mon, Mar 12, 2012 at 12:47 PM, Bruno Haible wrote: >> In November 2011, I wrote in >> : >> >>    glibc 2.11:   NaN, fenv bit, errno >>    MacOS X 10.5: NaN, fenv bit          math_errhandling >> (always=MATH_ERREXCEPT) >>    F

Re: math error reporting

2012-03-12 Thread Bruno Haible
> In November 2011, I wrote in > : > >glibc 2.11: NaN, fenv bit, errno >MacOS X 10.5: NaN, fenv bit math_errhandling > (always=MATH_ERREXCEPT) >FreeBSD 6.4: NaN, fenv bit math_errhandling > (alwa

Re: math error reporting

2011-11-07 Thread Bruno Haible
Bastien ROUCARIES wrote: > msvc is compliant but a the microsoft taste > https://www.securecoding.cert.org/confluence/display/seccode/FLP03-C.+Detect+and+handle+floating+point+errors Thanks, this was helpful. I wasn't aware of this _controlfp_s function. Bruno -- In memoriam Hannah Szenes

Re: math error reporting

2011-11-07 Thread Bastien ROUCARIES
On Sun, Nov 6, 2011 at 8:36 PM, Bruno Haible wrote: > Hi, > > Considering how gnulib-implemented functions should do their > error reporting, I ran a test program to see how the various systems > implement math errors. > > ==

Re: math error reporting

2011-11-07 Thread Bruno Haible
>OSF/1 5.1:0, errno ( incomplete) With the module 'fpieee', this becomes OSF/1 5.1:NaN, errno ( incomplete) So, we are able to support IEEE NaN on all platforms. Bruno -- In memoriam Hannah Szenes

Re: math error reporting

2011-11-06 Thread Bruno Haible
Paul Eggert wrote: > > How does that sound? (It's a lot of work, I know.) > > It sounds nice. You're right that it's a lot of work, though. > Is it worth the effort? (Depends on the problem you want solved > but I don't know what that is) The problem is that the way to test whether a math f

Re: math error reporting

2011-11-06 Thread Paul Eggert
On 11/06/11 12:36, Bruno Haible wrote: > How does that sound? (It's a lot of work, I know.) It sounds nice. You're right that it's a lot of work, though. Is it worth the effort? (Depends on the problem you want solved but I don't know what that is) Will the replacement address the document