Home
last modified time | relevance | path

Searched refs:kTagMask (Results 1 – 5 of 5) sorted by relevance

/third_party/gn/src/gn/
Dtagged_pointer.h24 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()
/third_party/skia/src/utils/
DSkJSON.h135 inline static constexpr uint8_t kTagMask = 0b00000111; variable
141 return static_cast<Tag>(fData8[0] & kTagMask); in getTag()
198 : reinterpret_cast<T*>(*this->cast<uintptr_t>() & ~static_cast<uintptr_t>(kTagMask)); in ptr()
DSkJSON.cpp40 SkASSERT(!(fData8[0] & kTagMask)); in init_tagged_pointer()
/third_party/flutter/skia/src/utils/
DSkJSON.h136 static constexpr uint8_t kTagMask = 0b11100000; variable
142 return static_cast<Tag>(fData8[kTagOffset] & kTagMask); in getTag()
199 ~(static_cast<uintptr_t>(kTagMask) << ((sizeof(uintptr_t) - 1) * 8));
DSkJSON.cpp41 SkASSERT(!(fData8[kTagOffset] & kTagMask)); in init_tagged_pointer()