Lines Matching refs:int64_t
177 static constexpr int64_t kInt32MinMinus1 =
178 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
179 static constexpr int64_t kInt32MaxPlus1 =
180 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
181 static constexpr int64_t kUint32MaxPlus1 =
182 static_cast<int64_t>(std::numeric_limits<uint32_t>::max()) + 1;
200 EXPECT_FALSE(IsInt<int64_t>(1, -2)); in TEST()
201 EXPECT_TRUE(IsInt<int64_t>(1, -1)); in TEST()
202 EXPECT_TRUE(IsInt<int64_t>(1, 0)); in TEST()
203 EXPECT_FALSE(IsInt<int64_t>(1, 1)); in TEST()
204 EXPECT_FALSE(IsInt<int64_t>(4, -9)); in TEST()
205 EXPECT_TRUE(IsInt<int64_t>(4, -8)); in TEST()
206 EXPECT_TRUE(IsInt<int64_t>(4, 7)); in TEST()
207 EXPECT_FALSE(IsInt<int64_t>(4, 8)); in TEST()
208 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
209 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
210 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
211 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
212 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MinMinus1)); in TEST()
213 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MaxPlus1)); in TEST()
214 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::min())); in TEST()
215 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::max())); in TEST()
216 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::min())); in TEST()
217 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::max())); in TEST()
233 static_assert(!IsInt<1, int64_t>(-2), "TestIsInt64#1");
234 static_assert(IsInt<1, int64_t>(-1), "TestIsInt64#2");
235 static_assert(IsInt<1, int64_t>(0), "TestIsInt64#3");
236 static_assert(!IsInt<1, int64_t>(1), "TestIsInt64#4");
237 static_assert(!IsInt<4, int64_t>(-9), "TestIsInt64#5");
238 static_assert(IsInt<4, int64_t>(-8), "TestIsInt64#6");
239 static_assert(IsInt<4, int64_t>(7), "TestIsInt64#7");
240 static_assert(!IsInt<4, int64_t>(8), "TestIsInt64#8");
241 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
242 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#10");
243 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#11");
244 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#12");
245 static_assert(!IsInt<32, int64_t>(kInt32MinMinus1), "TestIsInt64#13");
246 static_assert(!IsInt<32, int64_t>(kInt32MaxPlus1), "TestIsInt64#14");
247 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#15");
248 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#16");
249 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#17");
250 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#18");
266 static_assert(!IsUint<1, int64_t>(-1), "TestIsUint64#1");
267 static_assert(IsUint<1, int64_t>(0), "TestIsUint64#2");
268 static_assert(IsUint<1, int64_t>(1), "TestIsUint64#3");
269 static_assert(!IsUint<1, int64_t>(2), "TestIsUint64#4");
270 static_assert(!IsUint<4, int64_t>(-1), "TestIsUint64#5");
271 static_assert(IsUint<4, int64_t>(0), "TestIsUint64#6");
272 static_assert(IsUint<4, int64_t>(15), "TestIsUint64#7");
273 static_assert(!IsUint<4, int64_t>(16), "TestIsUint64#8");
274 static_assert(!IsUint<30, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#9");
275 static_assert(IsUint<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#10");
276 static_assert(!IsUint<62, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsUint64#11");
277 static_assert(IsUint<63, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsUint64#12");
278 static_assert(!IsUint<64, int64_t>(-1), "TestIsUint64#13");
279 static_assert(IsUint<64, int64_t>(0), "TestIsUint64#14");
306 static_assert(!IsAbsoluteUint<1, int64_t>(-2), "TestIsAbsoluteUint64#1");
307 static_assert(IsAbsoluteUint<1, int64_t>(-1), "TestIsAbsoluteUint64#2");
308 static_assert(IsAbsoluteUint<1, int64_t>(0), "TestIsAbsoluteUint64#3");
309 static_assert(IsAbsoluteUint<1, int64_t>(1), "TestIsAbsoluteUint64#4");
310 static_assert(!IsAbsoluteUint<1, int64_t>(2), "TestIsAbsoluteUint64#5");
311 static_assert(!IsAbsoluteUint<4, int64_t>(-16), "TestIsAbsoluteUint64#6");
312 static_assert(IsAbsoluteUint<4, int64_t>(-15), "TestIsAbsoluteUint64#7");
313 static_assert(IsAbsoluteUint<4, int64_t>(0), "TestIsAbsoluteUint64#8");
314 static_assert(IsAbsoluteUint<4, int64_t>(15), "TestIsAbsoluteUint64#9");
315 static_assert(!IsAbsoluteUint<4, int64_t>(16), "TestIsAbsoluteUint64#10");
316 static_assert(!IsAbsoluteUint<30, int64_t>(std::numeric_limits<int32_t>::max()),
318 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::max()),
320 static_assert(!IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min()),
322 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min() + 1),
324 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::max()),
326 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::min()),
328 static_assert(!IsAbsoluteUint<62, int64_t>(std::numeric_limits<int64_t>::max()),
330 static_assert(IsAbsoluteUint<63, int64_t>(std::numeric_limits<int64_t>::max()),
332 static_assert(!IsAbsoluteUint<63, int64_t>(std::numeric_limits<int64_t>::min()),
334 static_assert(IsAbsoluteUint<63, int64_t>(std::numeric_limits<int64_t>::min() + 1),
336 static_assert(IsAbsoluteUint<64, int64_t>(std::numeric_limits<int64_t>::max()),
338 static_assert(IsAbsoluteUint<64, int64_t>(std::numeric_limits<int64_t>::min()),
340 static_assert(!IsAbsoluteUint<32, int64_t>(-kUint32MaxPlus1), "TestIsAbsoluteUint64#23");
341 static_assert(IsAbsoluteUint<32, int64_t>(-kUint32MaxPlus1 + 1), "TestIsAbsoluteUint64#24");
342 static_assert(IsAbsoluteUint<32, int64_t>(0), "TestIsAbsoluteUint64#25");
343 static_assert(IsAbsoluteUint<64, int64_t>(0), "TestIsAbsoluteUint64#26");
344 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<uint32_t>::max()),
346 static_assert(!IsAbsoluteUint<32, int64_t>(kUint32MaxPlus1), "TestIsAbsoluteUint64#28");