gnustep-dev
[Top][All Lists]
Advanced

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

fpclassify portability [Solaris/FreeBSD]


From: David Ayers
Subject: fpclassify portability [Solaris/FreeBSD]
Date: Wed, 05 Dec 2007 10:24:59 +0100
User-agent: Mozilla Thunderbird 1.0.2 (X11/20070113)

Hello Adam,

address@hidden schrieb:
> On solaris, isnanf is defined in <ieeefp.h>, but not the other ones. Although 
> there is a function fpclass() which provides similar information.  I don't 
> know 
> about FreeBSD

thank you for checking!  I've checked up some more and it seems that:

       #include <math.h>

       int fpclassify(x);

should be the most portable approach (without requiring a conditional
include).  Could you verfiy that this exists for solaris?

Anyone with FreeBSD?

Cheers,
David





reply via email to

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