Searched refs:kTagMask (Results 1 – 5 of 5) sorted by relevance
24 T* ptr() const { return reinterpret_cast<T*>(value_ & ~kTagMask); } in ptr()25 unsigned tag() const { return static_cast<unsigned>(value_ & kTagMask); } in tag()29 value_ = reinterpret_cast<uintptr_t>(ptr) | (value_ & kTagMask); in set_ptr()34 value_ = (value_ & ~kTagMask) | tag; in set_tag()44 static const uintptr_t kTagMask = (uintptr_t(1) << BITS) - 1u;47 DCHECK((reinterpret_cast<uintptr_t>(ptr) & kTagMask) == 0) in CheckPointerValue()51 DCHECK(tag <= kTagMask) in CheckTagValue()
135 inline static constexpr uint8_t kTagMask = 0b00000111; variable141 return static_cast<Tag>(fData8[0] & kTagMask); in getTag()198 : reinterpret_cast<T*>(*this->cast<uintptr_t>() & ~static_cast<uintptr_t>(kTagMask)); in ptr()
40 SkASSERT(!(fData8[0] & kTagMask)); in init_tagged_pointer()
136 static constexpr uint8_t kTagMask = 0b11100000; variable142 return static_cast<Tag>(fData8[kTagOffset] & kTagMask); in getTag()199 ~(static_cast<uintptr_t>(kTagMask) << ((sizeof(uintptr_t) - 1) * 8));
41 SkASSERT(!(fData8[kTagOffset] & kTagMask)); in init_tagged_pointer()