PUB Parity(a) : p p := (a >> 16) ^ a p ^= p >> 8 p ^= p >> 4 p ^= p >> 2 p &= 1
Marc Gebauer said... Works! Thanks alot!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I forgot a p ^= p >> 1
you may want to put that after the p ^= p >> 2, otherwise you won't get a perfect parity.