Searched refs:IsValueNegative (Results 1 – 14 of 14) sorted by relevance
61 IsValueNegative<T>(SafeUnsignedAbs(value))); in SaturatedAbsWrapper()89 const V saturated = CommonMaxOrMin<V>(IsValueNegative(y));116 const V saturated = CommonMaxOrMin<V>(!IsValueNegative(y));141 CommonMaxOrMin<V>(IsValueNegative(x) ^ IsValueNegative(y));163 return x ? CommonMaxOrMin<V>(IsValueNegative(x) ^ IsValueNegative(y))207 return x ? CommonMaxOrMin<V>(IsValueNegative(x)) : 0;225 const V saturated = as_unsigned(V(0)) - IsValueNegative(x);
109 return CommonMaxOrMin<V>(IsValueNegative(x) ^ IsValueNegative(y)); in Do()
178 (!IsMinInRangeForNumericType<Dst, Src>() && IsValueNegative(value)));337 using internal::IsValueNegative;
52 constexpr bool IsValueNegative(T value) { in IsValueNegative() function59 constexpr bool IsValueNegative(T) { in IsValueNegative() function83 return IsValueNegative(value) ? 0 - static_cast<UnsignedT>(value) in SafeUnsignedAbs()260 IsValueNegative(value)));
161 return !IsValueNegative(state_.value()) ? *this : -*this; in Abs()
279 if (BASE_NUMERICS_LIKELY(!IsValueNegative(x) &&
189 * `IsValueNegative()` - A convenience function that will accept any
25 using base::IsValueNegative;637 EXPECT_TRUE(IsValueNegative(-1)); in TEST()638 EXPECT_TRUE(IsValueNegative(numeric_limits<int>::min())); in TEST()639 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::min())); in TEST()640 EXPECT_TRUE(IsValueNegative(-numeric_limits<double>::max())); in TEST()641 EXPECT_FALSE(IsValueNegative(0)); in TEST()642 EXPECT_FALSE(IsValueNegative(1)); in TEST()643 EXPECT_FALSE(IsValueNegative(0u)); in TEST()644 EXPECT_FALSE(IsValueNegative(1u)); in TEST()645 EXPECT_FALSE(IsValueNegative(numeric_limits<int>::max())); in TEST()[all …]
33 constexpr typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type IsValueNegative( in IsValueNegative() function41 constexpr typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type IsValueNegative(T) in IsValueNegative() function
1386 EXPECT_TRUE(IsValueNegative(-1)); in TEST()1387 EXPECT_TRUE(IsValueNegative(numeric_limits<int>::lowest())); in TEST()1388 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::lowest())); in TEST()1389 EXPECT_TRUE(IsValueNegative(numeric_limits<double>::lowest())); in TEST()1390 EXPECT_FALSE(IsValueNegative(0)); in TEST()1391 EXPECT_FALSE(IsValueNegative(1)); in TEST()1392 EXPECT_FALSE(IsValueNegative(0u)); in TEST()1393 EXPECT_FALSE(IsValueNegative(1u)); in TEST()1394 EXPECT_FALSE(IsValueNegative(numeric_limits<int>::max())); in TEST()1395 EXPECT_FALSE(IsValueNegative(numeric_limits<unsigned>::max())); in TEST()[all …]
188 (!IsMinInRangeForNumericType<Dst, Src>() && IsValueNegative(value)));347 using internal::IsValueNegative;
53 constexpr bool IsValueNegative(T value) { in IsValueNegative() function60 constexpr bool IsValueNegative(T) { in IsValueNegative() function84 return IsValueNegative(value) ? 0 - static_cast<UnsignedT>(value) in SafeUnsignedAbs()261 IsValueNegative(value)));
317 if (!IsValueNegative(x) && real_shift < kBitWidth) {
50 if (IsValueNegative(value)) { in IntToString()