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