Home | History | Annotate | Download | only in base

Lines Matching defs:size

34   static constexpr size_t size = kSize;
37 static_assert(size != 0u, "Invalid size.");
38 static_assert(size <= sizeof(uintptr_t) * kBitsPerByte, "Invalid size.");
39 static_assert(size + position <= sizeof(uintptr_t) * kBitsPerByte, "Invalid position + size.");
43 return (static_cast<uintptr_t>(value) & ~((kUintPtrTOne << size) - 1)) == 0;
48 return (kUintPtrTOne << size) - 1;
54 return ((kUintPtrTOne << size) - 1) << position;
63 // Returns the size of the bit field.
65 return size;
76 return static_cast<T>((value >> position) & ((kUintPtrTOne << size) - 1));