Searched refs:rotateAmt (Results 1 – 8 of 8) sorted by relevance
985 static unsigned rotateModulo(unsigned BitWidth, const APInt &rotateAmt) { in rotateModulo() argument986 unsigned rotBitWidth = rotateAmt.getBitWidth(); in rotateModulo()987 APInt rot = rotateAmt; in rotateModulo()991 rot = rotateAmt.zext(BitWidth); in rotateModulo()997 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl()998 return rotl(rotateModulo(BitWidth, rotateAmt)); in rotl()1001 APInt APInt::rotl(unsigned rotateAmt) const { in rotl()1002 rotateAmt %= BitWidth; in rotl()1003 if (rotateAmt == 0) in rotl()1005 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()[all …]
1273 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl()1274 return rotl((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotl()1277 APInt APInt::rotl(unsigned rotateAmt) const { in rotl()1278 rotateAmt %= BitWidth; in rotl()1279 if (rotateAmt == 0) in rotl()1281 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()1284 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr()1285 return rotr((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotr()1288 APInt APInt::rotr(unsigned rotateAmt) const { in rotr()1289 rotateAmt %= BitWidth; in rotr()[all …]
1247 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl()1248 return rotl((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotl()1251 APInt APInt::rotl(unsigned rotateAmt) const { in rotl()1252 rotateAmt %= BitWidth; in rotl()1253 if (rotateAmt == 0) in rotl()1255 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()1258 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr()1259 return rotr((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotr()1262 APInt APInt::rotr(unsigned rotateAmt) const { in rotr()1263 rotateAmt %= BitWidth; in rotr()[all …]
1327 APInt APInt::rotl(const APInt &rotateAmt) const { in rotl()1328 return rotl((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotl()1331 APInt APInt::rotl(unsigned rotateAmt) const { in rotl()1332 if (rotateAmt == 0) in rotl()1337 hi.shl(rotateAmt); in rotl()1338 lo.lshr(BitWidth - rotateAmt); in rotl()1342 APInt APInt::rotr(const APInt &rotateAmt) const { in rotr()1343 return rotr((unsigned)rotateAmt.getLimitedValue(BitWidth)); in rotr()1346 APInt APInt::rotr(unsigned rotateAmt) const { in rotr()1347 if (rotateAmt == 0) in rotr()[all …]
885 APInt LLVM_ATTRIBUTE_UNUSED_RESULT rotl(unsigned rotateAmt) const;888 APInt LLVM_ATTRIBUTE_UNUSED_RESULT rotr(unsigned rotateAmt) const;906 APInt LLVM_ATTRIBUTE_UNUSED_RESULT rotl(const APInt &rotateAmt) const;909 APInt LLVM_ATTRIBUTE_UNUSED_RESULT rotr(const APInt &rotateAmt) const;
735 APInt rotl(unsigned rotateAmt) const;738 APInt rotr(unsigned rotateAmt) const;753 APInt rotl(const APInt &rotateAmt) const;756 APInt rotr(const APInt &rotateAmt) const;
861 APInt rotl(unsigned rotateAmt) const;864 APInt rotr(unsigned rotateAmt) const;882 APInt rotl(const APInt &rotateAmt) const;885 APInt rotr(const APInt &rotateAmt) const;
999 APInt rotl(unsigned rotateAmt) const;1002 APInt rotr(unsigned rotateAmt) const;1038 APInt rotl(const APInt &rotateAmt) const;1041 APInt rotr(const APInt &rotateAmt) const;