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

Function GetIntLimit

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

Source from the content-addressed store, hash-verified

255
256template <typename T>
257constexpr T GetIntLimit(size_t bits) {
258 DCHECK_NE(bits, 0u);
259 DCHECK_LT(bits, BitSizeOf<T>());
260 return static_cast<T>(1) << (bits - 1);
261}
262
263template <size_t kBits, typename T>
264constexpr bool IsInt(T value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected