Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/include/llvm/ADT/
HDAPInt.h193 APInt shlSlowCase(unsigned shiftAmt) const;
518 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local
521 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet()
522 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()
760 APInt &operator<<=(unsigned shiftAmt) {
761 *this = shl(shiftAmt);
858 APInt LLVM_ATTRIBUTE_UNUSED_RESULT ashr(unsigned shiftAmt) const;
863 APInt LLVM_ATTRIBUTE_UNUSED_RESULT lshr(unsigned shiftAmt) const;
868 APInt LLVM_ATTRIBUTE_UNUSED_RESULT shl(unsigned shiftAmt) const { in shl() argument
869 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl()
[all …]
/NextBSD/contrib/llvm/lib/Support/
HDAPInt.cpp1045 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr()
1046 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()
1051 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()
1052 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()
1054 if (shiftAmt == 0) in ashr()
1059 if (shiftAmt == BitWidth) in ashr()
1064 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr()
1071 if (shiftAmt == BitWidth) { in ashr()
1082 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()
1083 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()
[all …]