Lines Matching refs:res
5 unsigned int res = w - ((w >> 1) & 0x55); in hweight8() local
7 res = (res & 0x33) + ((res >> 2) & 0x33); in hweight8()
8 return (res + (res >> 4)) & 0x0F; in hweight8()
13 unsigned int res = w - ((w >> 1) & 0x55555555); in hweight32() local
15 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in hweight32()
16 res = (res + (res >> 4)) & 0x0F0F0F0F; in hweight32()
17 res = res + (res >> 8); in hweight32()
18 return (res + (res >> 16)) & 0x000000FF; in hweight32()
26 uint64_t res = w - ((w >> 1) & 0x5555555555555555ULL); in hweight64()
27 res = (res & 0x3333333333333333ULL) + ((res >> 2) & 0x3333333333333333ULL); in hweight64()
28 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0FULL; in hweight64()
29 res = res + (res >> 8); in hweight64()
30 res = res + (res >> 16); in hweight64()
31 return (res + (res >> 32)) & 0x00000000000000FFULL; in hweight64()