Home
last modified time | relevance | path

Searched refs:StorageType (Results 1 – 10 of 10) sorted by relevance

/art/libartbase/base/
Dbit_struct.h113 typename StorageType>
123 typename = std::enable_if_t<std::is_same<T, StorageType>::value, _>>
124 explicit operator StorageType() const { in StorageType() function
174 using ConversionType = typename ValueConverter::StorageType;
177 std::make_signed_t<StorageType>,
178 StorageType>::type;
180 StorageType storage_;
189 template <typename T, size_t kBitOffset, size_t kBitWidth, typename StorageType>
190 struct BitStructNumber : public BitStructField<T, kBitOffset, kBitWidth, StorageType> {
208 StorageType operator++(int) {
[all …]
Dbit_string.h40 using StorageType = uint32_t; member
41 …static_assert(std::is_unsigned<StorageType>::value, "BitStringChar::StorageType must be unsigned");
47 BitStringChar(StorageType data, size_t bitlength) in BitStringChar()
65 explicit operator StorageType() const { in StorageType() function
69 bool operator==(StorageType storage) const {
73 bool operator!=(StorageType storage) const {
89 BitStringChar operator+(StorageType storage) const {
97 StorageType maximimum_data = MaxInt<StorageType>(bitlength_); in MaximumValue()
102 StorageType data_; // Unused bits (outside of bitlength) are 0.
110 << static_cast<BitStringChar::StorageType>(bc) << ")";
[all …]
Dbit_struct_detail.h62 using StorageType = typename MinimumTypeHelper<T, sizeof(T) * kBitsPerByte>::type; member
64 static constexpr StorageType ToUnderlyingStorage(T value) { in ToUnderlyingStorage()
70 static constexpr T FromUnderlyingStorage(StorageType storage) { in FromUnderlyingStorage()
79 StorageType val_;
Dbit_string_test.cc75 … MakeBitStringChar(i, MaxInt<BitStringChar::StorageType>(BitString::kBitSizeAtPosition[i]))); in MakeBitStringMax()
149 return MaxInt<BitString::StorageType>(BitString::kBitSizeAtPosition[kPos]); in MaxForPos()
155 BitString::StorageType as_int = static_cast<BitString::StorageType>(bs); in TEST()
/art/runtime/
Dsubtype_check_info.h176 BitString::StorageType source_value = GetEncodedPathToRoot(); in IsSubtypeOf()
177 BitString::StorageType target_value = target.GetEncodedPathToRoot(); in IsSubtypeOf()
178 BitString::StorageType target_mask = target.GetEncodedPathToRootMask(); in IsSubtypeOf()
296 BitString::StorageType GetEncodedPathToRoot() const { in GetEncodedPathToRoot()
297 BitString::StorageType data = static_cast<BitString::StorageType>(GetPathToRoot()); in GetEncodedPathToRoot()
304 BitString::StorageType GetEncodedPathToRootMask() const { in GetEncodedPathToRootMask()
307 return MaskLeastSignificant<BitString::StorageType>(bitlength); in GetEncodedPathToRootMask()
Dsubtype_check_bits_and_status.h70 BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf<BitString::StorageType>())
77 BITSTRUCT_INT(/*lsb=*/ 0, /*width=*/ BitSizeOf<BitString::StorageType>()) int32_alias_;
Dsubtype_check_info_test.cc75 … MakeBitStringChar(i, MaxInt<BitStringChar::StorageType>(BitString::kBitSizeAtPosition[i]))); in MakeBitStringMax()
259 using StorageType = BitString::StorageType; in TEST_F() typedef
267 EXPECT_EQ(MaxInt<StorageType>(LenForPos()), sci.GetEncodedPathToRoot()); in TEST_F()
286 EXPECT_EQ(MAKE_ENCODED_PATH(MaxInt<BitString::StorageType>(12), 0b1111, 0b0), in TEST_F()
288 EXPECT_EQ(MAKE_ENCODED_PATH(MaxInt<BitString::StorageType>(12), 0b1111, 0b11111111111), in TEST_F()
296 EXPECT_EQ(MAKE_ENCODED_PATH(MaxInt<BitString::StorageType>(12), 0b1111, 0b0), in TEST_F()
298 EXPECT_EQ(MAKE_ENCODED_PATH(MaxInt<BitString::StorageType>(12), 0b1111, 0b0), in TEST_F()
307 EXPECT_EQ(MAKE_ENCODED_PATH(MaxInt<BitString::StorageType>(12), 0b0000, 0b0), in TEST_F()
392 if (cur_next == MaxInt<BitString::StorageType>(BitString::kBitSizeAtPosition[0u])) { in TEST_F()
Dsubtype_check.h306 static BitString::StorageType GetEncodedPathToRootForSource(ClassPtr klass) in GetEncodedPathToRootForSource()
319 static BitString::StorageType GetEncodedPathToRootForTarget(ClassPtr klass) in GetEncodedPathToRootForTarget()
333 static BitString::StorageType GetEncodedPathToRootMask(ClassPtr klass) in GetEncodedPathToRootMask()
Dsubtype_check_test.cc246 BitString::StorageType GetEncodedPathToRootForSource() const in GetEncodedPathToRootForSource()
252 BitString::StorageType GetEncodedPathToRootForTarget() const in GetEncodedPathToRootForTarget()
258 BitString::StorageType GetEncodedPathToRootMask() const in GetEncodedPathToRootMask()
/art/compiler/optimizing/
Dgraph_checker.cc625 BitString::StorageType expected_path_to_root = 0u; in HandleTypeCheckInstruction()
626 BitString::StorageType expected_mask = 0u; in HandleTypeCheckInstruction()