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

References

unittests/ADT/APIntTest.cpp
  911   ASSERT_TRUE(a.uge(b)); // Must: a >= b
  912   ASSERT_TRUE(a.ugt(c)); // Must: a > c
  914   auto p = a * b + c;
  916   auto q = p.udiv(a);
  917   auto r = p.urem(a);
  920   APInt::udivrem(p, a, q, r);
  923   q = p.sdiv(a);
  924   r = p.srem(a);
  927   APInt::sdivrem(p, a, q, r);
  934     EXPECT_EQ(a, q);
  937     EXPECT_EQ(a, q);
  941     EXPECT_EQ(a, q);
  944     EXPECT_EQ(a, q);