Lines Matching refs:res
22 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
23 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
24 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
25 res = res + (res >> 8); in __sw_hweight32()
26 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
34 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
35 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
36 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
37 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
43 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
44 res = (res & 0x33) + ((res >> 2) & 0x33); in __sw_hweight8()
45 return (res + (res >> 4)) & 0x0F; in __sw_hweight8()
62 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()
63 res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul); in __sw_hweight64()
64 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful; in __sw_hweight64()
65 res = res + (res >> 8); in __sw_hweight64()
66 res = res + (res >> 16); in __sw_hweight64()
67 return (res + (res >> 32)) & 0x00000000000000FFul; in __sw_hweight64()