Lines Matching full: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()
28 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
36 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
43 unsigned long __sw_hweight64(__u64 w) in __sw_hweight64() argument
46 return __sw_hweight32((unsigned int)(w >> 32)) + in __sw_hweight64()
47 __sw_hweight32((unsigned int)w); in __sw_hweight64()
50 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
51 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
52 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
53 return (w * 0x0101010101010101ul) >> 56; in __sw_hweight64()
55 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()