// if even If (!x & 1)
If the code and the comments disagree, then both are probably wrong. ;)
Indeed, I was wrong in the even example. It's: if (~x & 1) // or if (!(x & 1))
And yes, I just saw it was already implemented, sorry.
Jose Catena DIGIWAVES S.L.