start of change

Population Count 4 Bytes (POPCNT4)

Bound program access

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

Description

Each word (4 bytes) of the source operand is examined to determine the number of bits set to a value of binary 1. An eight byte result value is calculated by placing the count of binary one bits set in the leftmost word, i.e. bits 0-31, of the source operand into the leftmost word of result. Likewise, the count of binary one bits set in the rightmost word, i.e. bits 32-63, of the source operand is placed into the rightmost word of result.

Each word of result will have a value in the range of 0 to 32, inclusive.

Authorization Required

Lock Enforcement

Exceptions

end of change