Positive 396 Source/core/html/forms/RangeInputType.cpp const Decimal closestRight = middle != m_tickMarkValues.size() ? m_tickMarkValues[middle] : Decimal::infinity(Decimal::Positive); Positive 72 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfFloatMantissaBits, (Decimal::Positive, 0, UINT64_C(1) << FLT_MANT_DIG)); Positive 78 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, tenPowerOf21, (Decimal::Positive, 21, 1)); Positive 157 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfDoubleMantissaBits, (Decimal::Positive, 0, UINT64_C(1) << DBL_MANT_DIG)); Positive 279 Source/platform/Decimal.cpp : m_data(i32 < 0 ? Negative : Positive, 0, i32 < 0 ? static_cast<uint64_t>(-static_cast<int64_t>(i32)) : static_cast<uint64_t>(i32)) Positive 368 Source/platform/Decimal.cpp if (lhsSign == Negative && rhsSign == Positive && !result) Positive 369 Source/platform/Decimal.cpp return Decimal(Positive, alignedOperands.exponent, 0); Positive 407 Source/platform/Decimal.cpp return Decimal(Positive, alignedOperands.exponent, 0); Positive 419 Source/platform/Decimal.cpp const Sign resultSign = lhsSign == rhsSign ? Positive : Negative; Positive 457 Source/platform/Decimal.cpp const Sign resultSign = lhsSign == rhsSign ? Positive : Negative; Positive 563 Source/platform/Decimal.cpp result.m_data.setSign(Positive); Positive 633 Source/platform/Decimal.cpp return isPositive() ? Decimal(1) : zero(Positive); Positive 653 Source/platform/Decimal.cpp return zero(Positive); Positive 674 Source/platform/Decimal.cpp return isPositive() ? zero(Positive) : Decimal(-1); Positive 688 Source/platform/Decimal.cpp return infinity(doubleValue < 0 ? Negative : Positive); Positive 696 Source/platform/Decimal.cpp Sign exponentSign = Positive; Positive 700 Source/platform/Decimal.cpp Sign sign = Positive; Positive 764 Source/platform/Decimal.cpp exponentSign = Positive; Positive 789 Source/platform/Decimal.cpp return exponentSign == Negative ? zero(Positive) : infinity(sign); Positive 833 Source/platform/Decimal.cpp sign = Positive; Positive 869 Source/platform/Decimal.cpp return zero(Positive); Positive 892 Source/platform/Decimal.cpp return Decimal(EncodedData(Positive, EncodedData::ClassNaN)); Positive 913 Source/platform/Decimal.cpp return zero(Positive); Positive 131 Source/platform/Decimal.h bool isPositive() const { return sign() == Positive; } Positive 173 Source/platform/Decimal.h static inline Sign invertSign(Sign sign) { return sign == Negative ? Positive : Negative; } Positive 80 Source/platform/DecimalTest.cpp protected: static const Sign Positive = Decimal::Positive; Positive 126 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(0, 0, Positive).abs()); Positive 127 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(0, 0, Negative).abs()); Positive 129 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 10, Positive), encode(0, 10, Positive).abs()); Positive 130 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 10, Positive), encode(0, 10, Negative).abs()); Positive 132 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -10, Positive), encode(0, -10, Positive).abs()); Positive 133 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -10, Positive), encode(0, -10, Negative).abs()); Positive 135 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, 0, Positive).abs()); Positive 136 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, 0, Negative).abs()); Positive 138 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 10, Positive), encode(1, 10, Positive).abs()); Positive 139 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 10, Positive), encode(1, 10, Negative).abs()); Positive 141 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -10, Positive), encode(1, -10, Positive).abs()); Positive 142 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -10, Positive), encode(1, -10, Negative).abs()); Positive 147 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Positive), encode(1, 1000, Positive).abs()); Positive 148 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Positive), encode(1, 1000, Negative).abs()); Positive 153 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1000, Positive), encode(1, -1000, Positive).abs()); Positive 154 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1000, Positive), encode(1, -1000, Negative).abs()); Positive 159 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).abs()); Positive 160 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).abs()); Positive 166 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) + Decimal(0)); Positive 169 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Positive), Decimal(99) + Decimal(1)); Positive 171 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), encode(1, 50, Positive) + Decimal(1)); Positive 172 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), Decimal(1) + encode(1, 50, Positive)); Positive 173 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(10000000001), 0, Positive), encode(1, 10, Positive) + Decimal(1)); Positive 174 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(10000000001), 0, Positive), Decimal(1) + encode(1, 10, Positive)); Positive 175 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, -1022, Positive) + encode(1, 0, Positive)); Positive 176 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, -1022, Positive), encode(1, -1022, Positive) + encode(1, -1022, Positive)); Positive 181 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) + encode(1, 0, Positive)); Positive 182 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, 1022, Positive), encode(1, 1022, Positive) + encode(1, 1022, Positive)); Positive 183 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(std::numeric_limits<uint64_t>::max(), 1022, Positive) + encode(1, 0, Positive)); Positive 184 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) + encode(1, -1000, Positive)); Positive 189 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, -1022, Positive) + encode(1, 0, Positive)); Positive 190 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, -1022, Positive), encode(1, -1022, Positive) + encode(1, -1022, Positive)); Positive 195 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Positive 223 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(1, -10, Positive).ceiling()); Positive 224 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(11, -1, Positive).ceiling()); Positive 225 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(13, -1, Positive).ceiling()); Positive 226 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(15, -1, Positive).ceiling()); Positive 227 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(19, -1, Positive).ceiling()); Positive 228 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(151, -2, Positive).ceiling()); Positive 229 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(101, -2, Positive).ceiling()); Positive 230 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(199, -3, Positive).ceiling()); Positive 231 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(199, -2, Positive).ceiling()); Positive 232 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(3), encode(209, -2, Positive).ceiling()); Positive 249 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Positive), encode(1, 1000, Positive).ceiling()); Positive 255 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, -1000, Positive).ceiling()); Positive 261 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).ceiling()); Positive 285 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, 1000, Positive) == encode(1, 1000, Positive)); Positive 286 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, 1000, Positive) != encode(1, 1000, Positive)); Positive 287 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, 1000, Positive) < encode(1, 1000, Positive)); Positive 288 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, 1000, Positive) <= encode(1, 1000, Positive)); Positive 289 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, 1000, Positive) > encode(1, 1000, Positive)); Positive 290 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, 1000, Positive) >= encode(1, 1000, Positive)); Positive 299 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, 1000, Positive) == encode(1, 1000, Positive)); Positive 300 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, 1000, Positive) != encode(1, 1000, Positive)); Positive 301 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, 1000, Positive) < encode(1, 1000, Positive)); Positive 302 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, 1000, Positive) <= encode(1, 1000, Positive)); Positive 303 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, 1000, Positive) > encode(1, 1000, Positive)); Positive 304 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, 1000, Positive) >= encode(1, 1000, Positive)); Positive 316 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, -1000, Positive) == encode(1, -1000, Positive)); Positive 317 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, -1000, Positive) != encode(1, -1000, Positive)); Positive 318 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, -1000, Positive) < encode(1, -1000, Positive)); Positive 319 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, -1000, Positive) <= encode(1, -1000, Positive)); Positive 320 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(1, -1000, Positive) > encode(1, -1000, Positive)); Positive 321 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, -1000, Positive) >= encode(1, -1000, Positive)); Positive 330 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, -1000, Positive) == encode(1, -1000, Positive)); Positive 331 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, -1000, Positive) != encode(1, -1000, Positive)); Positive 332 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, -1000, Positive) < encode(1, -1000, Positive)); Positive 333 Source/platform/DecimalTest.cpp EXPECT_FALSE(encode(2, -1000, Positive) <= encode(1, -1000, Positive)); Positive 334 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, -1000, Positive) > encode(1, -1000, Positive)); Positive 335 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(2, -1000, Positive) >= encode(1, -1000, Positive)); Positive 347 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Positive 350 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Positive 469 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(0u, 0, Positive, encode(0, 0, Positive)); Positive 471 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(1u, 0, Positive, encode(1, 0, Positive)); Positive 473 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(1u, 1022, Positive, encode(1, 1022, Positive)); Positive 475 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(1u, 1023, Positive, encode(1, 1023, Positive)); Positive 477 Source/platform/DecimalTest.cpp EXPECT_TRUE(encode(1, 2000, Positive).isInfinity()); Positive 479 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(0u, 0, Positive, encode(1, -2000, Positive)); Positive 481 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(UINT64_C(99999999999999998), 0, Positive, encode(UINT64_C(99999999999999998), 0, Positive)); Positive 483 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(UINT64_C(99999999999999999), 0, Positive, encode(UINT64_C(99999999999999999), 0, Positive)); Positive 485 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_ENCODED_DATA_EQ(UINT64_C(10000000000000000), 1, Positive, encode(UINT64_C(100000000000000000), 0, Positive)); Positive 491 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) / Decimal(1)); Positive 494 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(99, 0, Positive), Decimal(99) / Decimal(1)); Positive 496 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(3333333333333333), -16, Positive), Decimal(1) / Decimal(3)); Positive 497 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(12345678901234), -1, Positive), encode(UINT64_C(12345678901234), 0, Positive) / Decimal(10)); Positive 502 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) / encode(1, 0, Positive)); Positive 503 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, 1022, Positive) / encode(1, 1022, Positive)); Positive 504 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive) / encode(1, -1000, Positive)); Positive 509 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1022, Positive), encode(1, -1022, Positive) / encode(1, 0, Positive)); Positive 510 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), encode(1, -1022, Positive) / encode(1, -1022, Positive)); Positive 515 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Positive 518 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Positive 560 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(0, 0, Positive)); Positive 564 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 2000, Positive)); Positive 565 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), encode(1, -2000, Positive)); Positive 571 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(0), encode(1, -10, Positive).floor()); Positive 572 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(11, -1, Positive).floor()); Positive 573 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(13, -1, Positive).floor()); Positive 574 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(15, -1, Positive).floor()); Positive 575 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(19, -1, Positive).floor()); Positive 576 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(193332, -5, Positive).floor()); Positive 577 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(12), encode(12002, -3, Positive).floor()); Positive 591 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Positive), encode(1, 1000, Positive).floor()); Positive 597 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(1, -1000, Positive).floor()); Positive 603 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).floor()); Positive 610 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal::fromDouble(0.0)); Positive 612 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), Decimal::fromDouble(1)); Positive 614 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, 0, Positive), Decimal::fromDouble(123)); Positive 616 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1, Positive), Decimal::fromDouble(0.1)); Positive 622 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(2220446049250313), -31, Positive), Decimal::fromDouble(std::numeric_limits<double>::epsilon())); Positive 624 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(17976931348623157), 292, Positive), Decimal::fromDouble(std::numeric_limits<double>::max())); Positive 626 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(22250738585072014), -324, Positive), Decimal::fromDouble(std::numeric_limits<double>::min())); Positive 636 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0)); Positive 637 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), Decimal(1)); Positive 639 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Positive), Decimal(100)); Positive 641 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0x7FFFFFFF, 0, Positive), Decimal(std::numeric_limits<int32_t>::max())); Positive 647 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), fromString("0")); Positive 652 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(3, 0, Positive), fromString("+3")); Positive 653 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 3, Positive), fromString("0E3")); Positive 654 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(5, -1, Positive), fromString(".5")); Positive 655 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Positive), fromString("100")); Positive 657 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, -2, Positive), fromString("1.23")); Positive 659 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, 8, Positive), fromString("1.23E10")); Positive 661 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, 8, Positive), fromString("1.23E+10")); Positive 663 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, -12, Positive), fromString("1.23E-10")); Positive 665 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(5, -7, Positive), fromString("0.0000005")); Positive 666 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), fromString("0e9999")); Positive 667 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, -3, Positive), fromString("0.123")); Positive 668 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -2, Positive), fromString("00.00")); Positive 669 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 2, Positive), fromString("1E2")); Positive 670 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), fromString("1E20000")); Positive 671 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), fromString("1E-20000")); Positive 672 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1000, 1023, Positive), fromString("1E1026")); Positive 673 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), fromString("1E-1026")); Positive 674 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), fromString("1234567890E1036")); Positive 678 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(leadingDigitsOf2PowerOf1024, 292, Positive), fromString("179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216")); Positive 719 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) * Decimal(0)); Positive 722 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(99, 0, Positive), Decimal(99) * Decimal(1)); Positive 723 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2500, 0, Positive), Decimal(-50) * Decimal(-50)); Positive 724 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 21, Positive), encode(UINT64_C(10000000000), 0, Positive) * encode(UINT64_C(100000000000), 0, Positive)); Positive 729 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) * encode(1, 0, Positive)); Positive 730 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive) * encode(1, 1022, Positive)); Positive 731 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 22, Positive), encode(1, 1022, Positive) * encode(1, -1000, Positive)); Positive 736 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1022, Positive), encode(1, -1022, Positive) * encode(1, 0, Positive)); Positive 737 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(1, -1022, Positive) * encode(1, -1022, Positive)); Positive 742 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Positive 747 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Positive 787 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Negative), -encode(0, 0, Positive)); Positive 788 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), -encode(0, 0, Negative)); Positive 790 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 10, Negative), -encode(0, 10, Positive)); Positive 791 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 10, Positive), -encode(0, 10, Negative)); Positive 793 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -10, Negative), -encode(0, -10, Positive)); Positive 794 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -10, Positive), -encode(0, -10, Negative)); Positive 796 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Negative), -encode(1, 0, Positive)); Positive 797 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), -encode(1, 0, Negative)); Positive 799 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 10, Negative), -encode(1, 10, Positive)); Positive 800 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 10, Positive), -encode(1, 10, Negative)); Positive 802 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -10, Negative), -encode(1, -10, Positive)); Positive 803 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -10, Positive), -encode(1, -10, Negative)); Positive 808 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Negative), -encode(1, 1000, Positive)); Positive 809 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1000, Positive), -encode(1, 1000, Negative)); Positive 814 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1000, Negative), -encode(1, -1000, Positive)); Positive 815 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1000, Positive), -encode(1, -1000, Negative)); Positive 820 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), -Decimal::infinity(Positive)); Positive 821 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), -Decimal::infinity(Negative)); Positive 827 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isFinite()); Positive 828 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isInfinity()); Positive 829 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isNaN()); Positive 830 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isPositive()); Positive 831 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isNegative()); Positive 832 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isSpecial()); Positive 833 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isZero()); Positive 862 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isFinite()); Positive 863 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isInfinity()); Positive 864 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isNaN()); Positive 865 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isPositive()); Positive 866 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isNegative()); Positive 867 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isSpecial()); Positive 868 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isZero()); Positive 915 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(21, -1, Positive), encode(21, -1, Positive).remainder(3)); Positive 920 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, -1, Positive), encode(102, -1, Positive).remainder(1)); Positive 921 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1, Positive), Decimal(10).remainder(encode(3, -1, Positive))); Positive 922 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(36, -1, Positive).remainder(encode(13, -1, Positive))); Positive 923 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 87, Positive), (encode(1234, 100, Positive).remainder(Decimal(3)))); Positive 930 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 1022, Positive), encode(1, 1022, Positive).remainder(encode(1, 0, Positive))); Positive 931 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 1022, Positive), encode(1, 1022, Positive).remainder(encode(1, 1022, Positive))); Positive 932 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive).remainder(encode(1, -1000, Positive))); Positive 937 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1022, Positive), encode(1, -1022, Positive).remainder(encode(1, 0, Positive))); Positive 938 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, -1022, Positive), encode(1, -1022, Positive).remainder(encode(1, -1022, Positive))); Positive 943 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).remainder(1)); Positive 947 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Positive).remainder(-1)); Positive 948 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).remainder(-1)); Positive 951 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).remainder(3)); Positive 955 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Positive).remainder(-1)); Positive 956 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).remainder(-1)); Positive 959 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal(1).remainder(Decimal::infinity(Positive))); Positive 975 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1234, 100, Positive), encode(1234, 100, Positive).round()); Positive 977 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(190002, -5, Positive).round()); Positive 978 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(150002, -5, Positive).round()); Positive 979 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(150000, -5, Positive).round()); Positive 980 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(12), encode(12492, -3, Positive).round()); Positive 981 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(13), encode(12502, -3, Positive).round()); Positive 992 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).round()); Positive 999 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) - Decimal(0)); Positive 1000 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(3, 0, Positive), Decimal(2) - Decimal(-1)); Positive 1002 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(98, 0, Positive), Decimal(99) - Decimal(1)); Positive 1003 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(-50) - Decimal(-50)); Positive 1004 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), encode(1, 50, Positive) - Decimal(1)); Positive 1005 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Negative), Decimal(1) - encode(1, 50, Positive)); Positive 1010 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) - encode(1, 0, Positive)); Positive 1011 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(1, 1022, Positive) - encode(1, 1022, Positive)); Positive 1012 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 1022, Positive), encode(1, 1022, Positive) + encode(1, -1000, Positive)); Positive 1017 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(10000000000000000), -16, Negative), encode(1, -1022, Positive) - encode(1, 0, Positive)); Positive 1018 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), encode(1, -1022, Positive) - encode(1, -1022, Positive)); Positive 1023 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Positive 1050 Source/platform/DecimalTest.cpp EXPECT_EQ(0.0, encode(0, 0, Positive).toDouble()); Positive 1053 Source/platform/DecimalTest.cpp EXPECT_EQ(1.0, encode(1, 0, Positive).toDouble()); Positive 1056 Source/platform/DecimalTest.cpp EXPECT_EQ(0.1, encode(1, -1, Positive).toDouble()); Positive 1058 Source/platform/DecimalTest.cpp EXPECT_EQ(0.3, encode(3, -1, Positive).toDouble()); Positive 1060 Source/platform/DecimalTest.cpp EXPECT_EQ(0.6, encode(6, -1, Positive).toDouble()); Positive 1062 Source/platform/DecimalTest.cpp EXPECT_EQ(0.7, encode(7, -1, Positive).toDouble()); Positive 1065 Source/platform/DecimalTest.cpp EXPECT_EQ(0.01, encode(1, -2, Positive).toDouble()); Positive 1066 Source/platform/DecimalTest.cpp EXPECT_EQ(0.001, encode(1, -3, Positive).toDouble()); Positive 1067 Source/platform/DecimalTest.cpp EXPECT_EQ(0.0001, encode(1, -4, Positive).toDouble()); Positive 1068 Source/platform/DecimalTest.cpp EXPECT_EQ(0.00001, encode(1, -5, Positive).toDouble()); Positive 1070 Source/platform/DecimalTest.cpp EXPECT_EQ(1e+308, encode(1, 308, Positive).toDouble()); Positive 1071 Source/platform/DecimalTest.cpp EXPECT_EQ(1e-307, encode(1, -307, Positive).toDouble()); Positive 1073 Source/platform/DecimalTest.cpp EXPECT_TRUE(std::isinf(encode(1, 1000, Positive).toDouble())); Positive 1074 Source/platform/DecimalTest.cpp EXPECT_EQ(0.0, encode(1, -1000, Positive).toDouble()); Positive 1079 Source/platform/DecimalTest.cpp EXPECT_TRUE(std::isinf(Decimal::infinity(Decimal::Positive).toDouble())); Positive 1086 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("0", Decimal::zero(Positive)); Positive 1092 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("0.5", encode(5, -1, Positive)); Positive 1094 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("12.345", encode(12345, -3, Positive)); Positive 1096 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("0.12345", encode(12345, -5, Positive)); Positive 1098 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("50", encode(50, 0, Positive)); Positive 1100 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("5e+1", encode(5, 1, Positive)); Positive 1102 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("5.678e+103", encode(5678, 100, Positive)); Positive 1104 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("5.678e-97", encode(5678, -100, Positive)); Positive 1106 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("8639999913600001", encode(UINT64_C(8639999913600001), 0, Positive)); Positive 1107 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("9007199254740991", encode((static_cast<uint64_t>(1) << DBL_MANT_DIG) - 1, 0, Positive)); Positive 1108 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("99999999999999999", encode(UINT64_C(99999999999999999), 0, Positive)); Positive 1109 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("9.9999999999999999e+17", encode(UINT64_C(99999999999999999), 1, Positive)); Positive 1110 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("9.9999999999999999e+18", encode(UINT64_C(99999999999999999), 2, Positive)); Positive 1111 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1e+16", encode(UINT64_C(99999999999999999), -1, Positive)); Positive 1112 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1000000000000000", encode(UINT64_C(99999999999999999), -2, Positive)); Positive 1113 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1", encode(UINT64_C(99999999999999999), -17, Positive)); Positive 1114 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("0.001", encode(UINT64_C(99999999999999999), -20, Positive)); Positive 1115 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1e-83", encode(UINT64_C(99999999999999999), -100, Positive)); Positive 1120 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("Infinity", Decimal::infinity(Positive));