Lines Matching refs:C2Segment
250 struct C2Segment { struct
254 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment() argument
276 inline constexpr bool contains(const C2Segment &other) const { in contains() argument
285 inline constexpr bool operator==(const C2Segment &other) const {
293 inline constexpr bool operator!=(const C2Segment &other) const {
297 inline constexpr bool operator>=(const C2Segment &other) const {
301 inline constexpr bool operator>(const C2Segment &other) const {
305 inline constexpr bool operator<=(const C2Segment &other) const {
309 inline constexpr bool operator<(const C2Segment &other) const {
319 inline constexpr C2Segment intersect(const C2Segment &other) const { in intersect() argument
320 return C2Segment(c2_max(offset, other.offset), in intersect()
325 inline constexpr C2Segment normalize() const { in normalize() argument
326 return C2Segment(offset, c2_max(offset, end()) - offset); in normalize()
330 inline constexpr C2Segment saturate() const { in saturate() argument
331 return C2Segment(offset, c2_min(size, ~offset)); in saturate()
345 inline constexpr operator C2Segment() const { in C2Segment() function
346 return C2Segment(0, mCapacity); in C2Segment()
383 inline constexpr operator C2Segment() const { in C2Segment() function
384 return C2Segment(mOffset, mSize); in C2Segment()