Computing parity