Next:
PRODUCT_PREFIX(ARRAYDIM, MASK, Up: Specifications of Library Previous: POPCNT(I)


POPPAR(I)

Description. Return the parity of an integer.
Class. Elemental function.
Argument. I must be of type integer.
Result Type and Type Parameter. Same as I.
Result Value. POPPAR(I) is 1 if there are an odd number of one bits in I and zero if there are an even number. The model for the interpretation of an integer as a sequence of bits is in Section 13.5.7 of the Fortran 90 Standard.
Example. For scalar I, POPPAR(x) = MERGE(1,0,BTEST(POPCNT(x),0)).

paula@erc.msstate.edu
Thu Jul 21 17:05:43 CDT 1994