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

Declarations

include/llvm/ADT/APInt.h
 1827   ms magic() const;

References

lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4661     APInt::ms magics = Divisor.magic();
unittests/ADT/APIntTest.cpp
 1406   EXPECT_EQ(APInt(32, 3).magic().m, APInt(32, "55555556", 16));
 1407   EXPECT_EQ(APInt(32, 3).magic().s, 0U);
 1408   EXPECT_EQ(APInt(32, 5).magic().m, APInt(32, "66666667", 16));
 1409   EXPECT_EQ(APInt(32, 5).magic().s, 1U);
 1410   EXPECT_EQ(APInt(32, 7).magic().m, APInt(32, "92492493", 16));
 1411   EXPECT_EQ(APInt(32, 7).magic().s, 2U);