delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/03/18/03:58:44

X-Sybari-Trust: 29acaff5 9ffcebbb 7a95d2f4 00000138
From: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se>
Message-Id: <200303180858.JAA03661@lws256.lu.erisoft.se>
Subject: Re: isnan and isinf
To: djgpp-workers AT delorie DOT com
Date: Tue, 18 Mar 2003 09:58:34 +0100 (MET)
In-Reply-To: <7704-Tue18Mar2003082230+0200-eliz@elta.co.il> from "Eli Zaretskii" at Mar 18, 2003 08:22:30 AM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hello.

Eli said:
> > From: <ams AT ludd DOT luth DOT se>
> > Date: Mon, 17 Mar 2003 19:13:29 +0100 (CET)
> > 
> > Now that isnan() and isinf() and their friends are in C99, should the
> > code in libm be moved into libc?
> 
> IMHO, we should indeed have these functions in libc.a, but perhaps a
> simpler code could be written to implement them.  While at that, how
> about supporting IA32-specific bit patterns for Inf's and NaN's (see
> the Intel manual for details)?

Huh!? 

1. Are you saying isnan() doesn't detect all possible nans? The code
in src/libm/math/sf_isnan.c looks correct to me.

2. The code in src/libm/math/sf_isnan.c doesn't look overly
complex. In fact it looks like it will be hard to improve it.

3. I only know about one bit pattern for inf and another one for
-inf. Are there other ones?


Right,

						MartinS

- Raw text -


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