Home | History | Annotate | Download | only in net

Lines Matching refs:n16

99 /* parity of n16: count (mod 2) of ones in the binary representation. */
101 parity(uint16_t n16)
103 n16 = ((n16 & 0xaaaa) >> 1) ^ (n16 & 0x5555);
104 n16 = ((n16 & 0xcccc) >> 2) ^ (n16 & 0x3333);
105 n16 = ((n16 & 0xf0f0) >> 4) ^ (n16 & 0x0f0f);
106 n16 = ((n16 & 0xff00) >> 8) ^ (n16 & 0x00ff);
108 return (n16);