Lines Matching refs:res
19 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
20 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
21 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
22 res = res + (res >> 8); in __sw_hweight32()
23 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
29 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
30 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
31 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
32 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
37 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
38 res = (res & 0x33) + ((res >> 2) & 0x33); in __sw_hweight8()
39 return (res + (res >> 4)) & 0x0F; in __sw_hweight8()
54 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()
55 res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul); in __sw_hweight64()
56 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful; in __sw_hweight64()
57 res = res + (res >> 8); in __sw_hweight64()
58 res = res + (res >> 16); in __sw_hweight64()
59 return (res + (res >> 32)) & 0x00000000000000FFul; in __sw_hweight64()