Dan Luu personal blog

The Performance Cost of Integer Overflow Checking

How much overhead should we expect from enabling integer overflow checks? Using a compiler flag or built-in intrinsics, we should be able to do the check with a conditional branch that branches based on the overflow flag that add and sub set. Code that looks like
Points
166
HN comments
106
Submissions
1
Cited by
10 commenters

Software EngineeringSystems & Performance2014

On Hacker News

SubmittedTitle on HNPointsComments
Dec 18, 2014The Performance Cost of Integer Overflow Checking by nicholasjbs166106

Cited in comments

Linked from 10 Hacker News comments by 10 different people, from Jan 2015 to May 2026.

Most recent:

Search every comment that links here →

More from Dan Luu

All 102 posts →

Related posts from the same era