Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bdonlan
on Feb 9, 2019
|
parent
|
context
|
favorite
| on:
Faster remainders when the divisor is a constant: ...
The compiler has to assume that your operands might be large enough that they would overflow after a straight multiply.
saagarjha
on Feb 9, 2019
[–]
As acqq/I have mentioned below, there are ways of telling the compiler that the overflow can't multiply so it can freely optimize these away.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: