How to do xor(all bits from an Integer) efficiently?

f(x)=isodd(count_ones(x))

1 Like