start of change

Population Parity 4 Bytes (POPPAR4)

Bound program access

Built-in number for POPPAR4 is 708. POPPAR4 ( source : unsigned binary(8) ) : unsigned binary(8) /* result */

Description

The least significant, i.e. rightmost, bit in each byte of the source operand's leftmost word (bits 0-31) is examined. If an odd number of these bits are set to a value of binary 1, a value of 1 is placed into the leftmost word of result; otherwise the value of 0 is placed into this word.

Likewise, the least significant bit in each byte of the source operand's rightmost word (bits 32-63) is examined. If an odd number of these bits are set to a value of binary 1, a value of 1 is placed into the rightmost word of result; otherwise the value of 0 is placed into this word.

Usage Note: The Population Parity instructions are designed to be used in conjunction with the Population Count instructions to compute the parity of 4 or 8 byte data values.

Authorization Required

Lock Enforcement

Exceptions

end of change