Wayverb
Main Page
Related Pages
Classes
Files
File List
popcount.h
1
#pragma once
2
3
namespace
util
{
4
5
constexpr
int
popcount(
size_t
t) {
6
int
ret = 0;
7
for
(; t; t &= t - 1) {
8
++ret;
9
}
10
return
ret;
11
}
12
13
}
// namespace util
util
Definition:
allocator.h:6
src
utilities
include
utilities
popcount.h
Generated by
1.8.11