Lines Matching refs:int32_t

151     static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
153 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
158 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
159 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
160 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
161 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
162 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
163 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
164 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
165 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
166 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
167 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
168 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
169 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
181 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
182 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
183 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
184 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
193 static_assert(!IsInt<1, int32_t>(-2), "TestIsInt32#1");
194 static_assert(IsInt<1, int32_t>(-1), "TestIsInt32#2");
195 static_assert(IsInt<1, int32_t>(0), "TestIsInt32#3");
196 static_assert(!IsInt<1, int32_t>(1), "TestIsInt32#4");
197 static_assert(!IsInt<4, int32_t>(-9), "TestIsInt32#5");
198 static_assert(IsInt<4, int32_t>(-8), "TestIsInt32#6");
199 static_assert(IsInt<4, int32_t>(7), "TestIsInt32#7");
200 static_assert(!IsInt<4, int32_t>(8), "TestIsInt32#8");
201 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#9");
202 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#10");
203 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#11");
204 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#12");
214 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
215 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#10");
216 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#11");
217 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#12");
225 static_assert(!IsUint<1, int32_t>(-1), "TestIsUint32#1");
226 static_assert(IsUint<1, int32_t>(0), "TestIsUint32#2");
227 static_assert(IsUint<1, int32_t>(1), "TestIsUint32#3");
228 static_assert(!IsUint<1, int32_t>(2), "TestIsUint32#4");
229 static_assert(!IsUint<4, int32_t>(-1), "TestIsUint32#5");
230 static_assert(IsUint<4, int32_t>(0), "TestIsUint32#6");
231 static_assert(IsUint<4, int32_t>(15), "TestIsUint32#7");
232 static_assert(!IsUint<4, int32_t>(16), "TestIsUint32#8");
233 static_assert(!IsUint<30, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsUint32#9");
234 static_assert(IsUint<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsUint32#10");
235 static_assert(!IsUint<32, int32_t>(-1), "TestIsUint32#11");
236 static_assert(IsUint<32, int32_t>(0), "TestIsUint32#11");
247 static_assert(!IsUint<30, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#9");
248 static_assert(IsUint<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#10");
255 static_assert(!IsAbsoluteUint<1, int32_t>(-2), "TestIsAbsoluteUint32#1");
256 static_assert(IsAbsoluteUint<1, int32_t>(-1), "TestIsAbsoluteUint32#2");
257 static_assert(IsAbsoluteUint<1, int32_t>(0), "TestIsAbsoluteUint32#3");
258 static_assert(IsAbsoluteUint<1, int32_t>(1), "TestIsAbsoluteUint32#4");
259 static_assert(!IsAbsoluteUint<1, int32_t>(2), "TestIsAbsoluteUint32#5");
260 static_assert(!IsAbsoluteUint<4, int32_t>(-16), "TestIsAbsoluteUint32#6");
261 static_assert(IsAbsoluteUint<4, int32_t>(-15), "TestIsAbsoluteUint32#7");
262 static_assert(IsAbsoluteUint<4, int32_t>(0), "TestIsAbsoluteUint32#8");
263 static_assert(IsAbsoluteUint<4, int32_t>(15), "TestIsAbsoluteUint32#9");
264 static_assert(!IsAbsoluteUint<4, int32_t>(16), "TestIsAbsoluteUint32#10");
265 static_assert(!IsAbsoluteUint<30, int32_t>(std::numeric_limits<int32_t>::max()),
267 static_assert(IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::max()),
269 static_assert(!IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::min()),
271 static_assert(IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::min() + 1),
273 static_assert(IsAbsoluteUint<32, int32_t>(std::numeric_limits<int32_t>::max()),
275 static_assert(IsAbsoluteUint<32, int32_t>(std::numeric_limits<int32_t>::min()),
277 static_assert(IsAbsoluteUint<32, int32_t>(0), "TestIsAbsoluteUint32#17");
289 static_assert(!IsAbsoluteUint<30, int64_t>(std::numeric_limits<int32_t>::max()),
291 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::max()),
293 static_assert(!IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min()),
295 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min() + 1),
297 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::max()),
299 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::min()),