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

No. Imagine you have this:

  if (x < 7)
    doSomething();
  else
    doSomethingElse();
With -ffast-math, the compiler is allowed to call neither doSomething() nor doSomethingElse() if x is nan. Which IMHO is not great.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: