Lines Matching refs:res
21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
23 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
24 res = res + (res >> 8); in __sw_hweight32()
25 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
33 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
34 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
35 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
42 res = (res & 0x33) + ((res >> 2) & 0x33); in __sw_hweight8()
43 return (res + (res >> 4)) & 0x0F; in __sw_hweight8()
59 __u64 res = w - ((w >> 1) & 0x5555555555555555ul); in __sw_hweight64()
60 res = (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul); in __sw_hweight64()
61 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful; in __sw_hweight64()
62 res = res + (res >> 8); in __sw_hweight64()
63 res = res + (res >> 16); in __sw_hweight64()
64 return (res + (res >> 32)) & 0x00000000000000FFul; in __sw_hweight64()