Constraining values to small 0 <= N <= limit is something that many compilers now optimize for you to reduce the number of comparisons and to eliminate the branch implied by the “also”: GCC 4.6.2 compiles the above to the following (I’ve omitted boilerplate code) The optimization here is that converting “i” from signed to [...]