This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: isnan()
- From: Robert Schweikert <rjschwei at cox dot net>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com, rjschwei at cox dot net
- Date: Mon, 28 Feb 2005 21:31:46 -0500
- Subject: Re: isnan()
- References: <1109437408.2961.33.camel@triumph.rjsdomain> <4223C855.4010802@redhat.com>
There's a comment in the file about the processors that comply with IEEE
"IEEE compliant processors are X86, X86-64, Itanium, Sparc, HP-Alpha,
IBM-Power"
MIPS and PA-RISC are reversed.
If you initialize a double with an SNaN (0x7FFBFFFFFFFFFFFF) and then
call the isnan() function supplied by glibc (any C RTE I've tested for
that matter) the function returns false, i.e. SNaN is not recognized as
a NaN, which IMHO it shold be.
Thanks,
Robert
On Mon, 2005-02-28 at 17:41 -0800, Ulrich Drepper wrote:
> You do not even mention which architecture. All architectures I care
> about have no problems.
>
> --
> â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
--
Robert Schweikert MAY THE SOURCE BE WITH YOU
rjschwei@cox.net LINUX