Re: [Flightgear-devel] isnan()

2004-03-03 Thread Erik Hofman
Curtis L. Olson wrote: In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? I need the following for IRIX: #include ieeefp.h Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED]

Re: [Flightgear-devel] isnan()

2004-03-03 Thread Ima Sudonim
Mac OS X has You need to include math.h, and link with the standard C library -- libc (-lc) int isinf(double); int isnan(double); int isnanf(float); Thanks! Ima ___ Flightgear-devel mailing list [EMAIL PROTECTED]

Re: [Flightgear-devel] isnan()

2004-03-03 Thread Jim Wilson
Curtis L. Olson said: In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? It isn't listed here: http://www.cppreference.com/ FWIW that doesn't sound like a good programming practices sort of function. A quick test before executing

Re: [Flightgear-devel] isnan()

2004-03-03 Thread Andy Ross
Jim Wilson wrote: FWIW that doesn't sound like a good programming practices sort of function. A quick test before executing division isn't very expensive (no worse than an isnan). Actually, untrapped division by zero produces a positive or negative infinity, not a NaN. The idea of a NaN is

Re: [Flightgear-devel] isnan()

2004-03-03 Thread Mathias Fröhlich
Hi, On Mittwoch, 3. März 2004 19:19, Andy Ross wrote: Actually, untrapped division by zero produces a positive or negative infinity, not a NaN. The idea of a NaN is that it is never produced as the result of an FPU operation involving non-NaN values. This is actually a useful feature --

Re: [Flightgear-devel] isnan()

2004-03-03 Thread Curtis L. Olson
Andy Ross wrote: Jim Wilson wrote: FWIW that doesn't sound like a good programming practices sort of function. A quick test before executing division isn't very expensive (no worse than an isnan). Actually, untrapped division by zero produces a positive or negative infinity, not a NaN. The

[Flightgear-devel] isnan()

2004-03-02 Thread Curtis L. Olson
In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? Curt. -- Curtis Olson Intelligent Vehicles Lab FlightGear Project Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt

Re: [Flightgear-devel] isnan()

2004-03-02 Thread Martin Spott
Curtis L. Olson wrote: In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? I currently don't have a Linux box for a comparison but it appears to me that it could work similarly on Solaris and AIX, Martin. -- Unix _IS_ user friendly - it's

Re: [Flightgear-devel] isnan()

2004-03-02 Thread Mathias Fröhlich
On Mittwoch, 3. März 2004 04:51, Curtis L. Olson wrote: In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? I do not remember which standard isnan is according to. I know that SunOS 5.4 and HP-UX 9, all systems from about 4 years ago or

Re: [Flightgear-devel] isnan()

2004-03-02 Thread Frederic Bouvier
Curtis L. Olson wrote: In Linux isnan() is defined in math.h. Is this a portable function (errr macro) available to everyone? In the MSVC world, _isnan is defined in float.h, which is included by math.h :