| 251 | } |
| 252 | |
| 253 | static size_t mask_popcount(const std::vector<unsigned long>& words) { |
| 254 | size_t bits = 0; |
| 255 | for (unsigned long w : words) |
| 256 | for (unsigned long x = w; x != 0; x &= x - 1) ++bits; |
| 257 | return bits; |
| 258 | } |
| 259 | |
| 260 | // PR#14: the mask read once had an unbraced `else` that bound to the INNER `if (CPU_ISSET(...))`, so every CPU id |
| 261 | // outside the mask re-appended all hardware_concurrency() ids: a k-of-CPU_SETSIZE mask returned |
no outgoing calls
no test coverage detected