MCPcopy Create free account
hub / github.com/cwida/ALP / Mask

Method Mask

publication/source_code/include/chimp/bit_utils.hpp:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13template <class R>
14struct BitUtils {
15 static constexpr R Mask(unsigned int const bits) {
16 return (((uint64_t)(bits < (sizeof(R) * 8))) << (bits & ((sizeof(R) * 8) - 1))) - 1U;
17 }
18};
19
20} // namespace alp_bench

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected