Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
makefile
test_nan_inf.cpp

README.md

This code demonstrates that checks for NaNs and infinity are disabled by GCC when compiling with -ffast-math You need a relatively new version of GCC that supports C++11. Just type make and run two binaries produced from the same source file, but compiled with and without -ffast-math. One should also remember that -ffast-math is enabled by a commonly used option -Ofast.