Re: cmath, math.h, and isnan
Re: cmath, math.h, and isnan
- Subject: Re: cmath, math.h, and isnan
- From: Bill Northcott <email@hidden>
- Date: Tue, 24 May 2005 22:00:29 +1000
On 24/05/2005, at 8:05 PM, Tommy Nordgren wrote:
The solution is to have a small C source that includes math.h and
defines a function like myisnan() which itself just calls one of
the isnan primitives such as isnand. This can then be called from
C++ code.
It is better to define the inline fucntion(s) directly in terms
of the underlying api functions:
inline bool isNan(double x) {
return __isnand(x);
}
Yes that would be cleaner in most instances. The problem with R was
to fix an ISNAN() macro.
Bill Northcott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden