Lines Matching refs:MakeClampedNum
221 MakeClampedNum(-DstLimits::max()).Abs()); in TestSpecializedArithmetic()
293 MakeClampedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
295 MakeClampedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
421 MakeClampedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
423 MakeClampedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
517 MakeClampedNum(DstLimits::max()) & -1); in TestSpecializedArithmetic()
666 TEST_EXPECTED_VALUE(0, -MakeClampedNum(value)); in TestArithmetic()
668 TEST_EXPECTED_VALUE(-1, -MakeClampedNum(value)); in TestArithmetic()
670 TEST_EXPECTED_VALUE(-2, -MakeClampedNum(value)); in TestArithmetic()
672 TEST_EXPECTED_VALUE(1, -MakeClampedNum(value)); in TestArithmetic()
674 TEST_EXPECTED_VALUE(2, -MakeClampedNum(value)); in TestArithmetic()
676 TEST_EXPECTED_VALUE(Dst(DstLimits::max() * -1), -MakeClampedNum(value)); in TestArithmetic()
678 TEST_EXPECTED_VALUE(DstLimits::max(), -MakeClampedNum(value)); in TestArithmetic()
680 TEST_EXPECTED_VALUE(DstLimits::max(), -MakeClampedNum(value)); in TestArithmetic()
912 MakeClampedNum(SrcLimits::max()).Max(DstLimits::lowest())); in TestStrictComparison()
914 MakeClampedNum(SrcLimits::lowest()).Max(DstLimits::max())); in TestStrictComparison()
916 MakeClampedNum(SrcLimits::max()).Min(DstLimits::lowest())); in TestStrictComparison()
918 MakeClampedNum(SrcLimits::lowest()).Min(DstLimits::max())); in TestStrictComparison()
920 ClampMin(MakeStrictNum(1), MakeClampedNum(0), DstLimits::max(), in TestStrictComparison()
922 EXPECT_EQ(DstLimits::max(), ClampMax(MakeStrictNum(1), MakeClampedNum(0), in TestStrictComparison()
1616 auto a = ClampAdd(1, 2UL, MakeClampedNum(3LL), 4); in TEST()
1618 auto b = ClampSub(MakeClampedNum(20.0), 2UL, 4); in TEST()
1620 auto c = ClampMul(20.0, MakeClampedNum(1), 5, 3UL); in TEST()
1622 auto d = ClampDiv(20.0, 2.0, MakeClampedNum(5LL), -4); in TEST()
1624 auto e = ClampMod(MakeClampedNum(20), 3); in TEST()
1626 auto f = ClampLsh(1, MakeClampedNum(2U)); in TEST()
1628 auto g = ClampRsh(4, MakeClampedNum(2U)); in TEST()