Lines Matching refs:rotateAmt
1093 static unsigned rotateModulo(unsigned BitWidth, const APInt &rotateAmt) { in rotateModulo() argument
1096 unsigned rotBitWidth = rotateAmt.getBitWidth(); in rotateModulo()
1097 APInt rot = rotateAmt; in rotateModulo()
1101 rot = rotateAmt.zext(BitWidth); in rotateModulo()
1107 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl()
1108 return rotl(rotateModulo(BitWidth, rotateAmt)); in rotl()
1111 APInt APInt::rotl(unsigned rotateAmt) const { in rotl()
1114 rotateAmt %= BitWidth; in rotl()
1115 if (rotateAmt == 0) in rotl()
1117 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()
1120 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr()
1121 return rotr(rotateModulo(BitWidth, rotateAmt)); in rotr()
1124 APInt APInt::rotr(unsigned rotateAmt) const { in rotr()
1127 rotateAmt %= BitWidth; in rotr()
1128 if (rotateAmt == 0) in rotr()
1130 return lshr(rotateAmt) | shl(BitWidth - rotateAmt); in rotr()