reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/APIntTest.cpp
 2562         APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::UP);
 2563         auto Prod = Quo.sext(16) * B.sext(16);
 2566           EXPECT_TRUE(((Quo - 1).sext(16) * B.sext(16)).ult(A));
 2570         APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::DOWN);
 2571         auto Prod = Quo.sext(16) * B.sext(16);
 2574           EXPECT_TRUE(((Quo + 1).sext(16) * B.sext(16)).ugt(A));
 2578         APInt Quo = A.sdiv(B);
 2579         EXPECT_EQ(Quo, APIntOps::RoundingSDiv(A, B, APInt::Rounding::TOWARD_ZERO));