Aug 6, 2012
Tags: and, even, mod, odd, performance
A common programming task is to determine if an integer is even or odd. Recently, I saw an article showing how to do the task faster than the usual way: (i % 2) == 0. Today’s article shows an even faster way to check for even or odd.
(i % 2) == 0
Read the rest of this article »