Searched refs:ToUint (Results 1 – 1 of 1) sorted by relevance
39 constexpr uint32_t ToUint(T val) { return static_cast<uint32_t>(val); } in ToUint() function43 constexpr uint32_t ToBit(T val) { return 1u << ToUint(val); } in ToBit()53 return BitMask(ToUint(T::kMax) + 1) & (~BitMask(ToUint(T::kMin))); in BitMask()61 constexpr bool MatchesBitMask(T val, uint32_t mask) { return MatchesBitMask(ToUint(val), mask); } in MatchesBitMask()66 constexpr uint32_t NumValues() { return ToUint(T::kMax) - ToUint(T::kMin) + 1; } in NumValues()71 return static_cast<T>(ToUint(T::kMin) + i); in GetEnumAt()122 static_assert(kValueBitSize >= MinimumBitsToStore(helper::ToUint(Value::kMax)),130 static_assert(helper::ToUint(Value::kMax) < helper::ToUint(Value::kInvalid));159 : dex_flags_(helper::ToUint(val) | domain_apis) {170 if (value == helper::ToUint(Value::kInvalid)) { in GetValue()[all …]