• 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: isnan()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isnan()


  • Subject: Re: isnan()
  • From: Markus Hitter <email@hidden>
  • Date: Sat, 10 Jul 2004 00:00:47 +0200

Am 09.07.2004 um 21:59 schrieb Bryan Pietrzak:

How do I use isnan in a project?

The man page says: #include <math.h>. Usually the man page is correct.

For other cases, you might want to put this little function into your .bashrc:

function locateheader {
locate \*.h | while read F; do
if fgrep $1 "$F" 2>/dev/null; then echo "$F"; fi;
done
}


Then, "locateheader isnan" gives architecture/ppc/math.h which is included by math.h

I have #include <math.h> ... I still get an error ...

Looking into /usr/include/architecture/ppc/math.h, nothing obvious pops into sight, the definition is in there:


#define isnan( x ) ( ( sizeof ( x ) == sizeof(double) ) ? \
__isnand ( x ) : \
( sizeof ( x ) == sizeof( float) ) ? \
__isnanf ( x ) : \
__isnan ( x ) )



I'd recheck with some simple test case and by looking into preprocessors output.



HTH, Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >isnan() (From: Bryan Pietrzak <email@hidden>)

  • Prev by Date: Re: how to find a segfault?
  • Next by Date: viewing global vars in the debugger
  • Previous by thread: Re: isnan()
  • Next by thread: how to find a segfault?
  • Index(es):
    • Date
    • Thread