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

Why would the compiler substitute the broken value unless the compiler was broken?

Compilers generally don't use specialized local architecture instructions to compute their results, because they can't (It would break cross-compiling or targeting different platforms in a lot of cases) In fact, it's more likely the other way around:

Compiler substitutes proper value. actual calls on sin(x) on the local platform give wrong answer.



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

Search: