• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cmath, math.h, and isnan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: cmath, math.h, and isnan (From: Bill Northcott <email@hidden>)
 >Re: cmath, math.h, and isnan (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: cmath, math.h, and isnan
  • Next by Date: InterfaceBuilder and 10.3.9
  • Previous by thread: Re: cmath, math.h, and isnan
  • Next by thread: Editing text macros
  • Index(es):
    • Date
    • Thread