Mail Archives: djgpp-workers/2000/03/19/03:50:38
On Thu, 16 Mar 2000, Hans-Bernhard Broeker wrote:
> > This is not the part of the standard I was worried about. C89 explicitly
> > required math functions not to crash, but to set errno instead. What
> > does C99 say about that?
>
> 7.12.1 Treatment of error conditions
>
> [#1] The behavior of each of the functions in <math.h> is
> specified for all representable values of its input
> arguments, except where stated otherwise.
The problem is not with NaNs as arguments, it's with finite arguments
which cause an Invalid Operation exception. I don't think the above
quotation takes care of that case.
- Raw text -