Lines Matching refs:w
11 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument
14 w -= (w >> 1) & 0x55555555; in __sw_hweight32()
15 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32()
16 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32()
17 return (w * 0x01010101) >> 24; in __sw_hweight32()
19 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
27 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
29 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
35 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
37 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
42 unsigned long __sw_hweight64(__u64 w) in __sw_hweight64() argument
45 return __sw_hweight32((unsigned int)(w >> 32)) + in __sw_hweight64()
46 __sw_hweight32((unsigned int)w); in __sw_hweight64()
49 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
50 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
51 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
52 return (w * 0x0101010101010101ul) >> 56; in __sw_hweight64()
54 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()