Home
last modified time | relevance | path

Searched refs:rotateAmt (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp1093 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()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h880 APInt rotl(unsigned rotateAmt) const;
883 APInt rotr(unsigned rotateAmt) const;
919 APInt rotl(const APInt &rotateAmt) const;
922 APInt rotr(const APInt &rotateAmt) const;