3 ms·
At what cost to code size?
by tedunangst 6y ago
At what cost to code size?
- jeffbee 6y agoThat would be the thing: two bytes in the hot path. But it wouldn't need to be universally applied to every place the + operator appears. Couldn't it just be wrapped around sensitive computations, or generated for the x > y + z idiom? It would be cheaper or at least as cheap as the machine code generated for the manual overflow check (if int_max - z > y ...)