• Home
  • Raw
  • Download

Lines Matching refs:C2Segment

32         static_assert(C2Segment(123u, 456u).offset == 123, "");  in StaticSegmentTest()
33 static_assert(C2Segment(123u, 456u).size == 456, ""); in StaticSegmentTest()
36 static_assert(!C2Segment(123u, 456u).isEmpty(), ""); in StaticSegmentTest()
37 static_assert(C2Segment(123u, 0u).isEmpty(), ""); in StaticSegmentTest()
40 static_assert(C2Segment(123u, 456u).isValid(), ""); in StaticSegmentTest()
41 static_assert(C2Segment(123u, ~123u).isValid(), ""); in StaticSegmentTest()
42 static_assert(!C2Segment(123u, 1 + ~123u).isValid(), ""); in StaticSegmentTest()
45 static_assert(C2Segment(123u, 456u), ""); in StaticSegmentTest()
46 static_assert((bool)C2Segment(123u, ~123u), ""); in StaticSegmentTest()
47 static_assert(!bool(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
48 static_assert(!bool(C2Segment(123u, 0)), ""); in StaticSegmentTest()
51 static_assert(!!C2Segment(123u, 456u), ""); in StaticSegmentTest()
52 static_assert(!!C2Segment(123u, ~123u), ""); in StaticSegmentTest()
53 static_assert(!C2Segment(123u, 1 + ~123u), ""); in StaticSegmentTest()
54 static_assert(!C2Segment(123u, 0), ""); in StaticSegmentTest()
57 static_assert(C2Segment(123u, ~123u).contains(C2Segment(123u, 0)), ""); in StaticSegmentTest()
58 static_assert(!C2Segment(123u, 1 + ~123u).contains(C2Segment(123u, 0)), ""); in StaticSegmentTest()
59 static_assert(C2Segment(123u, ~123u).contains(C2Segment(123u, ~123u)), ""); in StaticSegmentTest()
60 static_assert(!C2Segment(123u, ~123u).contains(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
61 static_assert(!C2Segment(123u, 1 + ~123u).contains(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
62 static_assert(!C2Segment(123u, ~123u).contains(C2Segment(122u, 2u)), ""); in StaticSegmentTest()
63 static_assert(C2Segment(123u, ~123u).contains(C2Segment(123u, 2u)), ""); in StaticSegmentTest()
64 static_assert(C2Segment(123u, 3u).contains(C2Segment(124u, 2u)), ""); in StaticSegmentTest()
65 static_assert(!C2Segment(123u, 3u).contains(C2Segment(125u, 2u)), ""); in StaticSegmentTest()
68 static_assert(C2Segment(123u, 456u) == C2Segment(123u, 456u), ""); in StaticSegmentTest()
69 static_assert(!(C2Segment(123u, 456u) == C2Segment(123u, 457u)), ""); in StaticSegmentTest()
70 static_assert(!(C2Segment(123u, 456u) == C2Segment(123u, 455u)), ""); in StaticSegmentTest()
71 static_assert(!(C2Segment(123u, 456u) == C2Segment(122u, 456u)), ""); in StaticSegmentTest()
72 static_assert(!(C2Segment(123u, 456u) == C2Segment(124u, 456u)), ""); in StaticSegmentTest()
73 static_assert(!(C2Segment(123u, 0u) == C2Segment(124u, 0u)), ""); in StaticSegmentTest()
74 static_assert(C2Segment(123u, 0u) == C2Segment(123u, 0u), ""); in StaticSegmentTest()
75 static_assert(C2Segment(123u, 1 + ~123u) == C2Segment(124u, 1 + ~124u), ""); in StaticSegmentTest()
78 static_assert(!(C2Segment(123u, 456u) != C2Segment(123u, 456u)), ""); in StaticSegmentTest()
79 static_assert(C2Segment(123u, 456u) != C2Segment(123u, 457u), ""); in StaticSegmentTest()
80 static_assert(C2Segment(123u, 456u) != C2Segment(123u, 455u), ""); in StaticSegmentTest()
81 static_assert(C2Segment(123u, 456u) != C2Segment(122u, 456u), ""); in StaticSegmentTest()
82 static_assert(C2Segment(123u, 456u) != C2Segment(124u, 456u), ""); in StaticSegmentTest()
83 static_assert(C2Segment(123u, 0u) != C2Segment(124u, 0u), ""); in StaticSegmentTest()
84 static_assert(!(C2Segment(123u, 0u) != C2Segment(123u, 0u)), ""); in StaticSegmentTest()
85 static_assert(!(C2Segment(123u, 1 + ~123u) != C2Segment(124u, 1 + ~124u)), ""); in StaticSegmentTest()
88 static_assert(C2Segment(123u, 456u) <= C2Segment(123u, 456u), ""); in StaticSegmentTest()
89 static_assert(C2Segment(123u, 456u) <= C2Segment(123u, 457u), ""); in StaticSegmentTest()
90 static_assert(C2Segment(123u, 456u) <= C2Segment(122u, 457u), ""); in StaticSegmentTest()
91 static_assert(!(C2Segment(123u, 457u) <= C2Segment(123u, 456u)), ""); in StaticSegmentTest()
92 static_assert(!(C2Segment(122u, 457u) <= C2Segment(123u, 456u)), ""); in StaticSegmentTest()
93 static_assert(!(C2Segment(123u, 457u) <= C2Segment(124u, 457u)), ""); in StaticSegmentTest()
94 static_assert(!(C2Segment(122u, 457u) <= C2Segment(123u, 457u)), ""); in StaticSegmentTest()
95 static_assert(!(C2Segment(122u, 0u) <= C2Segment(123u, 0u)), ""); in StaticSegmentTest()
96 static_assert(C2Segment(123u, 0u) <= C2Segment(122u, 1u), ""); in StaticSegmentTest()
97 static_assert(C2Segment(122u, 0u) <= C2Segment(122u, 1u), ""); in StaticSegmentTest()
98 static_assert(!(C2Segment(122u, ~122u) <= C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
99 static_assert(!(C2Segment(122u, 1 + ~122u) <= C2Segment(122u, ~122u)), ""); in StaticSegmentTest()
100 static_assert(!(C2Segment(122u, 1 + ~122u) <= C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
103 static_assert(!(C2Segment(123u, 456u) < C2Segment(123u, 456u)), ""); in StaticSegmentTest()
104 static_assert(C2Segment(123u, 456u) < C2Segment(123u, 457u), ""); in StaticSegmentTest()
105 static_assert(C2Segment(123u, 456u) < C2Segment(122u, 457u), ""); in StaticSegmentTest()
106 static_assert(!(C2Segment(123u, 457u) < C2Segment(123u, 456u)), ""); in StaticSegmentTest()
107 static_assert(!(C2Segment(122u, 457u) < C2Segment(123u, 456u)), ""); in StaticSegmentTest()
108 static_assert(!(C2Segment(123u, 457u) < C2Segment(124u, 457u)), ""); in StaticSegmentTest()
109 static_assert(!(C2Segment(122u, 457u) < C2Segment(123u, 457u)), ""); in StaticSegmentTest()
110 static_assert(!(C2Segment(122u, 0u) < C2Segment(123u, 0u)), ""); in StaticSegmentTest()
111 static_assert(C2Segment(123u, 0u) < C2Segment(122u, 1u), ""); in StaticSegmentTest()
112 static_assert(C2Segment(122u, 0u) < C2Segment(122u, 1u), ""); in StaticSegmentTest()
113 static_assert(!(C2Segment(122u, ~122u) < C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
114 static_assert(!(C2Segment(122u, 1 + ~122u) < C2Segment(122u, ~122u)), ""); in StaticSegmentTest()
115 static_assert(!(C2Segment(122u, 1 + ~122u) < C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
118 static_assert(C2Segment(123u, 456u) >= C2Segment(123u, 456u), ""); in StaticSegmentTest()
119 static_assert(C2Segment(123u, 457u) >= C2Segment(123u, 456u), ""); in StaticSegmentTest()
120 static_assert(C2Segment(122u, 457u) >= C2Segment(123u, 456u), ""); in StaticSegmentTest()
121 static_assert(!(C2Segment(123u, 456u) >= C2Segment(123u, 457u)), ""); in StaticSegmentTest()
122 static_assert(!(C2Segment(123u, 456u) >= C2Segment(122u, 457u)), ""); in StaticSegmentTest()
123 static_assert(!(C2Segment(124u, 457u) >= C2Segment(123u, 457u)), ""); in StaticSegmentTest()
124 static_assert(!(C2Segment(123u, 457u) >= C2Segment(122u, 457u)), ""); in StaticSegmentTest()
125 static_assert(!(C2Segment(123u, 0u) >= C2Segment(122u, 0u)), ""); in StaticSegmentTest()
126 static_assert(C2Segment(122u, 1u) >= C2Segment(123u, 0u), ""); in StaticSegmentTest()
127 static_assert(C2Segment(122u, 1u) >= C2Segment(122u, 0u), ""); in StaticSegmentTest()
128 static_assert(!(C2Segment(122u, 1 + ~122u) >= C2Segment(122u, ~122u)), ""); in StaticSegmentTest()
129 static_assert(!(C2Segment(122u, ~122u) >= C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
130 static_assert(!(C2Segment(122u, 1 + ~122u) >= C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
133 static_assert(!(C2Segment(123u, 456u) > C2Segment(123u, 456u)), ""); in StaticSegmentTest()
134 static_assert(C2Segment(123u, 457u) > C2Segment(123u, 456u), ""); in StaticSegmentTest()
135 static_assert(C2Segment(122u, 457u) > C2Segment(123u, 456u), ""); in StaticSegmentTest()
136 static_assert(!(C2Segment(123u, 456u) > C2Segment(123u, 457u)), ""); in StaticSegmentTest()
137 static_assert(!(C2Segment(123u, 456u) > C2Segment(122u, 457u)), ""); in StaticSegmentTest()
138 static_assert(!(C2Segment(124u, 457u) > C2Segment(123u, 457u)), ""); in StaticSegmentTest()
139 static_assert(!(C2Segment(123u, 457u) > C2Segment(122u, 457u)), ""); in StaticSegmentTest()
140 static_assert(!(C2Segment(123u, 0u) > C2Segment(122u, 0u)), ""); in StaticSegmentTest()
141 static_assert(C2Segment(122u, 1u) > C2Segment(123u, 0u), ""); in StaticSegmentTest()
142 static_assert(C2Segment(122u, 1u) > C2Segment(122u, 0u), ""); in StaticSegmentTest()
143 static_assert(!(C2Segment(122u, 1 + ~122u) > C2Segment(122u, ~122u)), ""); in StaticSegmentTest()
144 static_assert(!(C2Segment(122u, ~122u) > C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
145 static_assert(!(C2Segment(122u, 1 + ~122u) > C2Segment(122u, 1 + ~122u)), ""); in StaticSegmentTest()
148 static_assert(C2Segment(123u, 456u).end() == 579u, ""); in StaticSegmentTest()
149 static_assert(C2Segment(123u, 0u).end() == 123u, ""); in StaticSegmentTest()
150 static_assert(C2Segment(123u, ~123u).end() == 0xffffffffu, ""); in StaticSegmentTest()
151 static_assert(C2Segment(123u, 1 + ~123u).end() == 0u, ""); in StaticSegmentTest()
154 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 456u)) == C2Segment(123u, 456u), ""); in StaticSegmentTest()
155 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 460u)) == C2Segment(123u, 456u), ""); in StaticSegmentTest()
156 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(124u, 460u)) == C2Segment(124u, 455u), ""); in StaticSegmentTest()
157 … static_assert(C2Segment(123u, 456u).intersect(C2Segment(579u, 460u)) == C2Segment(579u, 0u), ""); in StaticSegmentTest()
158 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(589u, 460u)) == C2Segment(589u, ~9u /* -10… in StaticSegmentTest()
159 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 455u)) == C2Segment(123u, 455u), ""); in StaticSegmentTest()
160 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(122u, 456u)) == C2Segment(123u, 455u), ""); in StaticSegmentTest()
161 … static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 123u)) == C2Segment(123u, 0u), ""); in StaticSegmentTest()
162 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 0u)) == C2Segment(123u, ~122u /* -123 … in StaticSegmentTest()
165 static_assert(C2Segment(123u, 456u).normalize() == C2Segment(123u, 456u), ""); in StaticSegmentTest()
166 static_assert(C2Segment(123u, ~123u).normalize() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
167 static_assert(C2Segment(123u, 1 + ~123u).normalize() == C2Segment(123u, 0u), ""); in StaticSegmentTest()
170 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, ~150u)).normalize() == C2Segment(150… in StaticSegmentTest()
171 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u)).normalize() != C2Segment in StaticSegmentTest()
172 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u)).normalize() == C2Segment in StaticSegmentTest()
175 static_assert(C2Segment(123u, 456u).saturate() == C2Segment(123u, 456u), ""); in StaticSegmentTest()
176 static_assert(C2Segment(123u, ~123u).saturate() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
177 static_assert(C2Segment(123u, 1 + ~123u).saturate() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
180 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u).saturate()).normalize() =… in StaticSegmentTest()
181 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 100u).saturate()).normalize() == C2Seg… in StaticSegmentTest()
182 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() != C2… in StaticSegmentTest()
183 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() == C2… in StaticSegmentTest()