saturatedAddition 149 Source/platform/LayoutUnit.h return saturatedAddition(rawValue(), kFixedPointDenominator / 2) / kFixedPointDenominator; saturatedAddition 578 Source/platform/LayoutUnit.h returnVal.setRawValue(saturatedAddition(a.rawValue(), b.rawValue())); saturatedAddition 681 Source/platform/LayoutUnit.h a.setRawValue(saturatedAddition(a.rawValue(), b.rawValue())); saturatedAddition 41 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, 0), 0); saturatedAddition 42 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, 1), 1); saturatedAddition 43 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, 100), 100); saturatedAddition 44 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(100, 50), 150); saturatedAddition 46 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, -1), -1); saturatedAddition 47 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(1, -1), 0); saturatedAddition 48 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(100, -50), 50); saturatedAddition 49 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(50, -100), -50); saturatedAddition 51 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX - 1, 0), INT_MAX - 1); saturatedAddition 52 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX - 1, 1), INT_MAX); saturatedAddition 53 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX - 1, 2), INT_MAX); saturatedAddition 54 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, INT_MAX - 1), INT_MAX - 1); saturatedAddition 55 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(1, INT_MAX - 1), INT_MAX); saturatedAddition 56 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(2, INT_MAX - 1), INT_MAX); saturatedAddition 57 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX - 1, INT_MAX - 1), INT_MAX); saturatedAddition 58 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX, INT_MAX), INT_MAX); saturatedAddition 60 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN, 0), INT_MIN); saturatedAddition 61 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN + 1, 0), INT_MIN + 1); saturatedAddition 62 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN + 1, 1), INT_MIN + 2); saturatedAddition 63 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN + 1, 2), INT_MIN + 3); saturatedAddition 64 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN + 1, -1), INT_MIN); saturatedAddition 65 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN + 1, -2), INT_MIN); saturatedAddition 66 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(0, INT_MIN + 1), INT_MIN + 1); saturatedAddition 67 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(-1, INT_MIN + 1), INT_MIN); saturatedAddition 68 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(-2, INT_MIN + 1), INT_MIN); saturatedAddition 70 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX / 2, 10000), INT_MAX / 2 + 10000); saturatedAddition 71 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MAX / 2 + 1, INT_MAX / 2 + 1), INT_MAX); saturatedAddition 72 Source/wtf/SaturatedArithmeticTest.cpp ASSERT_EQ(saturatedAddition(INT_MIN, INT_MAX), -1);