Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 108 | Rev 154 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | } |
37 | } |
| 38 | 38 | ||
| 39 | int PopCnt(uint64_t arg1) { |
39 | int PopCnt(uint64_t arg1) { |
| 40 | int c; |
40 | int c; |
| 41 | 41 | ||
| 42 | for (c = 0; arg1; c++) |
42 | for (c = 0; arg1; c++) |
| 43 | arg1 &= arg1 - 1; |
43 | arg1 &= arg1 - 1; |
| 44 | return c; |
44 | return c; |
| 45 | } |
45 | } |
| 46 | #endif |
46 | #endif |