Lines Matching refs:w
13 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument
16 w -= (w >> 1) & 0x55555555; in __sw_hweight32()
17 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32()
18 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32()
19 return (w * 0x01010101) >> 24; in __sw_hweight32()
21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
30 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
39 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
47 unsigned long __sw_hweight64(__u64 w) in __sw_hweight64() argument
50 return __sw_hweight32((unsigned int)(w >> 32)) + in __sw_hweight64()
51 __sw_hweight32((unsigned int)w); in __sw_hweight64()
54 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
55 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
56 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
57 return (w * 0x0101010101010101ul) >> 56; in __sw_hweight64()
59 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()