MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / POPCOUNT

Function POPCOUNT

Bcore/src/main/cpp/base/bit_utils.h:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86// Return the number of 1-bits in `x`.
87template<typename T>
88constexpr int POPCOUNT(T x) {
89 return (sizeof(T) == sizeof(uint32_t)) ? __builtin_popcount(x) : __builtin_popcountll(x);
90}
91
92// Swap bytes.
93template<typename T>

Callers 1

GetOffsetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected