Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For the float stuff, beware of `-ffinite-math-only`. If enabled, `isfinite()` and may compile out as assumed true (with similar assumptions around `isnan()` and `isinf()`).

And `-ffinite-math-only` is enabled by `-ffast-math` which in turn is enabled by `-Ofast`.



Not only that: `-ffast-math` might change the result of flops when the arguments are regular floats too. (It abandons IEEE754 compliance)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: