Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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`.
87
template<typename T>
88
constexpr int POPCOUNT(T x) {
89
return (sizeof(T) == sizeof(uint32_t)) ? __builtin_popcount(x) : __builtin_popcountll(x);
90
}
91
92
// Swap bytes.
93
template<typename T>
Callers
1
GetOffset
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected