Parity and spin
Marc Gebauer
Posts: 60
Does anyone know the·fastest way to calculate odd parity in spin?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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.