Lines Matching refs:w
12 unsigned int hweight32(unsigned int w) in hweight32() argument
14 unsigned int res = w - ((w >> 1) & 0x55555555); in hweight32()
22 unsigned int hweight16(unsigned int w) in hweight16() argument
24 unsigned int res = w - ((w >> 1) & 0x5555); in hweight16()
31 unsigned int hweight8(unsigned int w) in hweight8() argument
33 unsigned int res = w - ((w >> 1) & 0x55); in hweight8()
39 unsigned long hweight64(__u64 w) in hweight64() argument
42 return hweight32((unsigned int)(w >> 32)) + hweight32((unsigned int)w); in hweight64()
45 w -= (w >> 1) & 0x5555555555555555ul; in hweight64()
46 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in hweight64()
47 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in hweight64()
48 return (w * 0x0101010101010101ul) >> 56; in hweight64()
50 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in hweight64()