Lines Matching refs:int64_t
67 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) - 1) == CastSafety::kSafe);
68 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>)) == CastSafety::kSafe);
69 static_assert(cast_safety<int64_t>(static_cast<uint64_t>(max<int64_t>) + 1) ==
79 static_assert(cast_safety<uint32_t>(max<int64_t>) == CastSafety::kOverflow);
81 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) - 1) == CastSafety::kSafe);
82 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>)) == CastSafety::kSafe);
83 static_assert(cast_safety<uint32_t>(static_cast<int64_t>(max<uint32_t>) + 1) ==
93 static_assert(cast_safety<int32_t>(static_cast<int64_t>(min<int32_t>)) == CastSafety::kSafe);
94 static_assert(cast_safety<int32_t>(static_cast<int64_t>(max<int32_t>)) == CastSafety::kSafe);
97 static_assert(cast_safety<int32_t>(max<int64_t>) == CastSafety::kOverflow);
124 static_assert(cast_safety<float>(min<int64_t>) == CastSafety::kSafe);
125 static_assert(cast_safety<float>(max<int64_t>) == CastSafety::kSafe);
127 static_assert(cast_safety<double>(min<int64_t>) == CastSafety::kSafe);
128 static_assert(cast_safety<double>(max<int64_t>) == CastSafety::kSafe);
151 static_assert(cast_safety<uint64_t>(static_cast<float>(max<int64_t>)) == CastSafety::kSafe);
153 static_assert(cast_safety<uint64_t>(static_cast<double>(max<int64_t>)) == CastSafety::kSafe);
164 static_assert(cast_safety<int64_t>(NaN<double>) == CastSafety::kOverflow);
171 static_assert(cast_safety<int64_t>(0.0) == CastSafety::kSafe);
172 static_assert(cast_safety<int64_t>(min<double>) == CastSafety::kUnderflow);
173 static_assert(cast_safety<int64_t>(max<double>) == CastSafety::kOverflow);
175 static_assert(cast_safety<int64_t>(static_cast<float>(min<int64_t>)) == CastSafety::kSafe);
176 static_assert(cast_safety<int64_t>(static_cast<float>(max<int64_t>)) == CastSafety::kOverflow);
177 static_assert(cast_safety<int64_t>(static_cast<double>(min<int64_t>)) == CastSafety::kSafe);
178 static_assert(cast_safety<int64_t>(static_cast<double>(max<int64_t>)) == CastSafety::kOverflow);
187 EXPECT_EQ(cast_safety<int64_t>(std::nexttoward(min<int64_t>, 0)), CastSafety::kSafe); in TEST()
188 EXPECT_EQ(cast_safety<int64_t>(std::nexttoward(max<int64_t>, 0)), CastSafety::kSafe); in TEST()
194 EXPECT_EQ(cast_safety<int64_t>(std::nexttoward(min<int64_t>, min<double>)), in TEST()
196 EXPECT_EQ(cast_safety<int64_t>(std::nexttoward(max<int64_t>, max<double>)), in TEST()