|
|
|
|
|
by dllthomas
3476 days ago
|
|
With the conditional subtraction recommended elsewhere, you can do 2*N with no branch mispredictions and no modulo. Whether that's actually faster should be tested, if you're in an environment where you care about such things. |
|