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

That only works if you are sure to have a 64-bit result. If you can have divisor < multiplier and need to detect overflow, it's more complicated.




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

Search: