www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/03/03:29:28

Date: Mon, 3 Nov 1997 10:26:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Mr Kevin Yeung <keviny AT tst DOT hk DOT super DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP failed library tests?
In-Reply-To: <63hrdf$mpt$1@tst.hk.super.net>
Message-ID: <Pine.SUN.3.91.971103102527.14641B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019