Home
last modified time | relevance | path

Searched refs:IsValueNegative (Results 1 – 14 of 14) sorted by relevance

/external/libchrome/base/numerics/
Dclamped_math_impl.h61 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);
Dsafe_math_arm_impl.h109 return CommonMaxOrMin<V>(IsValueNegative(x) ^ IsValueNegative(y)); in Do()
Dsafe_conversions.h178 (!IsMinInRangeForNumericType<Dst, Src>() && IsValueNegative(value)));
337 using internal::IsValueNegative;
Dsafe_conversions_impl.h52 constexpr bool IsValueNegative(T value) { in IsValueNegative() function
59 constexpr bool IsValueNegative(T) { in IsValueNegative() function
83 return IsValueNegative(value) ? 0 - static_cast<UnsignedT>(value) in SafeUnsignedAbs()
260 IsValueNegative(value)));
Dchecked_math.h161 return !IsValueNegative(state_.value()) ? *this : -*this; in Abs()
Dchecked_math_impl.h279 if (BASE_NUMERICS_LIKELY(!IsValueNegative(x) &&
DREADME.md189 * `IsValueNegative()` - A convenience function that will accept any
/external/angle/src/common/third_party/base/anglebase/numerics/
Dsafe_numerics_unittest.cc25 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 …]
Dsafe_conversions.h33 constexpr typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type IsValueNegative( in IsValueNegative() function
41 constexpr typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type IsValueNegative(T) in IsValueNegative() function
/external/libchrome/base/
Dsafe_numerics_unittest.cc1386 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 …]
/external/pdfium/third_party/base/numerics/
Dsafe_conversions.h188 (!IsMinInRangeForNumericType<Dst, Src>() && IsValueNegative(value)));
347 using internal::IsValueNegative;
Dsafe_conversions_impl.h53 constexpr bool IsValueNegative(T value) { in IsValueNegative() function
60 constexpr bool IsValueNegative(T) { in IsValueNegative() function
84 return IsValueNegative(value) ? 0 - static_cast<UnsignedT>(value) in SafeUnsignedAbs()
261 IsValueNegative(value)));
Dsafe_math_impl.h317 if (!IsValueNegative(x) && real_shift < kBitWidth) {
/external/libchrome/base/strings/
Dstring_number_conversions.cc50 if (IsValueNegative(value)) { in IntToString()