|
|
|
|
|
by BeetleB
1256 days ago
|
|
> made so by the unobvious test for NaN-ness in many languages (ie, "if (x != x)") Which languages do not have a function to test for NaN? > and the lure of people who want to turn on "fast math" optimizations which do things like assume NaNs aren't possible and then dead-code-eliminate everything that's guarded by an "x != x" test. This is not unique to NaNs. There are plenty of potential floating point problems if you enable those flags. |
|
Both C and C++.
> This is not unique to NaNs. There are plenty of potential floating point problems if you enable those flags.
That's why I said in the second part that we need to do away with them.