www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/17/08:16:38

Date: Wed, 17 Jan 2001 14:04:32 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Weird results of log( -1.0 ) with libm.a and without libm.a
In-Reply-To: <ho4a6t8dauadtkugp92cphdb37o7jqh9s4@4ax.com>
Message-ID: <Pine.SUN.3.91.1010117140329.18768Y-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 17 Jan 2001, Damian Yerrick wrote:

> >However, I can compare the result directly with NaN and Inf
> 
> You can't just do if(x == 0./0.)

Careful: this might misfire in some cases, depending on the FPU setup (in 
the standard DJGPP setup, it's okay).  It could, for example, crash your 
program.

- Raw text -


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