Lines Matching refs:uintptr_t
26 static constexpr uintptr_t kUintPtrTOne = 1U;
37 static_assert(position < sizeof(uintptr_t) * kBitsPerByte, "Invalid position.");
39 static_assert(size <= sizeof(uintptr_t) * kBitsPerByte, "Invalid size.");
40 static_assert(size + position <= sizeof(uintptr_t) * kBitsPerByte, "Invalid position + size.");
44 return (static_cast<uintptr_t>(value) & ~((kUintPtrTOne << size) - 1)) == 0; in IsValid()
48 static uintptr_t Mask() { in Mask()
54 static uintptr_t MaskInPlace() { in MaskInPlace()
70 static uintptr_t Encode(T value) { in Encode()
72 return static_cast<uintptr_t>(value) << position; in Encode()
76 static T Decode(uintptr_t value) { in Decode()
83 static uintptr_t Update(T value, uintptr_t original) { in Update()
85 return (static_cast<uintptr_t>(value) << position) | in Update()