MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / MaskLow

Function MaskLow

Kernel-Bridge/API/Hypervisor.cpp:683–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681 // E.g.: MaskLow<char>(5) -> 0b00011111:
682 template <typename T>
683 constexpr T MaskLow(unsigned char SignificantBits)
684 {
685 return static_cast<T>((1ULL << SignificantBits) - 1);
686 }
687
688 // E.g.: MaskHigh<char>(3) -> 0b11100000:
689 template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected