Mail Archives: djgpp/1997/11/03/03:29:28
On 2 Nov 1997, Mr Kevin Yeung wrote:
> Try this: sqrt(-1.0);
> errno won't get set to EDOM.
sqrt(-1) crashes the program with SIGFPE (floating-point exception).
Doesn't it for you? If it does, how did you expect to see errno? if
it doesn't crash, please post your test program (hope it's not too
long).
> assert(fabs(0.02 - 0.02) / 0.02 < 4 * LDBL_EPSILON);
> will fail.
It doesn't fail for me. Again, post the test program you used.
Do you at all use DJGPP v2.01?
- Raw text -