News for hackers. Stuff that matters.
Re:Looks like people are slowly forgetting about the modulus... by WeEatnKid on Friday March 30, 2018 @09:39AM (#16715919)
This particular use case (checking odd or even) doesn't even need to use the modulus operation -- which is expensive. A bitwise AND is much more efficient (provided that the compiler doesn't apply that optimization upon seeing % 2)

There are no comments on this comment yet.