bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'isnan-nolibm'


From: Paul Eggert
Subject: Re: new module 'isnan-nolibm'
Date: Sun, 25 Feb 2007 23:15:05 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Paul Eggert wrote:
>> > Solaris 10:  isnan() is a function, defined in libc
>> 
>> Not that this affects the conclusion, but the Solaris isnan is present
>> only for legacy apps.  On Solaris 10 isnan is a macro that expands to
>> __builtin_isnan, and __builtin_isnan is done inline.
>
> Huh? On a Solaris 10 / SPARC system I have this in /usr/include:

The macro is defined in <iso/math_c99.h>, which is included indirectly
by math.h.  isnan isn't normally visible as a function.  For example,
on Solaris 10 with Sun C 5.8 Patch 121015-04 2007/01/10:

$ cat t.c
#include <math.h>
int main (void) { return isnan (0.0); }
$ cc -E t.c | grep isnan
extern int isnanf  ( float );
extern int isnanl  ( long double );
int main (void) { return  __builtin_isnan ( 0.0 ); }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]