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

Declarations

include/llvm/ADT/APInt.h
 1002   APInt rotr(unsigned rotateAmt) const;

References

lib/Support/APInt.cpp
 1057   return rotr(rotateModulo(BitWidth, rotateAmt));
tools/clang/lib/AST/ExprConstant.cpp
 2445         Res |= EltAsInt.zextOrTrunc(VecSize).rotr(i*EltSize+BaseEltSize);
 9307           Elt = SValInt.rotr(i*EltSize).trunc(FloatEltSize);
 9316           Elt = SValInt.rotr(i*EltSize).zextOrTrunc(EltSize);
unittests/ADT/APIntTest.cpp
  296   EXPECT_EQ(one, one.rotr(0));
  297   EXPECT_EQ(one, one.rotr(1));
 1486   EXPECT_EQ(APInt(8, 16), APInt(8, 16).rotr(0));
 1487   EXPECT_EQ(APInt(8, 8),  APInt(8, 16).rotr(1));
 1488   EXPECT_EQ(APInt(8, 4),  APInt(8, 16).rotr(2));
 1489   EXPECT_EQ(APInt(8, 1),  APInt(8, 16).rotr(4));
 1490   EXPECT_EQ(APInt(8, 16), APInt(8, 16).rotr(8));
 1492   EXPECT_EQ(APInt(8, 1),   APInt(8, 1).rotr(0));
 1493   EXPECT_EQ(APInt(8, 128), APInt(8, 1).rotr(1));
 1494   EXPECT_EQ(APInt(8, 64),  APInt(8, 1).rotr(2));
 1495   EXPECT_EQ(APInt(8, 16),  APInt(8, 1).rotr(4));
 1496   EXPECT_EQ(APInt(8, 1),   APInt(8, 1).rotr(8));
 1498   EXPECT_EQ(APInt(32, (1 << 31)), APInt(32, 1).rotr(33));
 1501   EXPECT_EQ(APInt(32, (1 << 31)), APInt(32, 1).rotr(33));
 1524   EXPECT_EQ(Rot, Big.rotr(144));