[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ] |
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 F95:13.5.7
Example. For scalar I, POPPAR(I) =
MERGE(1,0,BTEST(POPCNT(I),0)).
©2000-2006 Rice University | [ Contact Us | HiPerSoft | Computer Science ] |