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

Interesting, but pretty limited corner case. Would compilers even identify those 28 values and do the transformation?


Maybe for f16. The compiler's implementation could just be checking all numerators to see if the transformation is safe. The corner cases are messy and not quickly brute-forceable for f32 or brute-forceable at all for f64 though, so I doubt they'd bother, especially when I bet those constants have showed up literally zero times across all programs.




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

Search: