|
From: Sean M. <se...@ro...> - 2009-04-27 16:28:32
|
On 4/27/09 9:20 AM, James W. Walker said: >> At least nan, inf, etc. do not work (correctly) when __FAST_MATH__ >> is on. > >Please tell me more. How do they work differently when it is off? The gcc man page does discuss this somewhat. It says: "-ffast-math Sets -fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math, - ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx- limited-range." Then for -ffinite-math-only it says: "Allow optimizations for floating-point arithmetic that assume that arguments and results are not NaNs or +-Infs." -- ____________________________________________________________ Sean McBride, B. Eng se...@ro... Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada |