On Sun, 4 Nov 2018, Jeff Law wrote: > Don't we have a flag specific to honoring nans? Would that be better to > use than flag_unsafe_math_optimizations? As Uli mentioned, there's
That's only relevant for the comparison optimization, of course. Converting erfc to 1-erf is dubious, since the whole point of erfc is for cases where 1-erf is inaccurate. (Conversion in the other direction also needs flag_unsafe_math_optimizations.) -- Joseph S. Myers jos...@codesourcery.com