Created
May 16, 2012 14:32
-
-
Save mloskot/2710802 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* For NAN */ | |
| #ifdef __GNUC__ | |
| #define _GNU_SOURCE | |
| #endif | |
| #include <math.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the IEEE-compatible way: https://gist.github.com/2711003
In fact, if you look at GCC code of NAN you can see similar NAN trick, but with slightly different pattern.