Lines Matching refs:w
12 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument
15 w -= (w >> 1) & 0x55555555; in __sw_hweight32()
16 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32()
17 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32()
18 return (w * 0x01010101) >> 24; in __sw_hweight32()
20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
29 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
31 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
38 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
40 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
46 unsigned long __sw_hweight64(__u64 w) in __sw_hweight64() argument
49 return __sw_hweight32((unsigned int)(w >> 32)) + in __sw_hweight64()
50 __sw_hweight32((unsigned int)w); in __sw_hweight64()
53 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
54 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
55 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
56 return (w * 0x0101010101010101ul) >> 56; in __sw_hweight64()
58 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()