Searched refs:kUnderflow (Results 1 – 2 of 2) sorted by relevance
43 static_assert(cast_safety<uint8_t>(-1) == CastSafety::kUnderflow);46 static_assert(cast_safety<uint32_t>(-.1f) == CastSafety::kUnderflow);49 static_assert(cast_safety<float>(-DBL_MAX) == CastSafety::kUnderflow);78 static_assert(cast_safety<uint32_t>(-1) == CastSafety::kUnderflow);88 static_assert(cast_safety<int8_t>(-129) == CastSafety::kUnderflow);96 static_assert(cast_safety<int16_t>(min<int32_t>) == CastSafety::kUnderflow);104 static_assert(cast_safety<float>(min<double>) == CastSafety::kUnderflow);109 CastSafety::kUnderflow); in TEST()133 static_assert(cast_safety<uint32_t>(min<float>) == CastSafety::kUnderflow);135 static_assert(cast_safety<uint32_t>(-.1f) == CastSafety::kUnderflow);[all …]
26 enum class CastSafety { kSafe, kUnderflow, kOverflow }; enumerator62 if (v < L::lowest()) return CastSafety::kUnderflow; in cast_safety()66 if (v < 0) return CastSafety::kUnderflow; in cast_safety()