Lines Matching refs:numbits
77 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) {
107 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal)
108 : BitWidth(numBits), VAL(0) {
112 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[])
113 : BitWidth(numBits), VAL(0) {
117 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
118 : BitWidth(numbits), VAL(0) {
120 fromString(numbits, Str, radix);
671 /// HiBits - This function returns the high "numBits" bits of this APInt.
672 APInt APInt::getHiBits(unsigned numBits) const {
673 return APIntOps::lshr(*this, BitWidth - numBits);
676 /// LoBits - This function returns the low "numBits" bits of this APInt.
677 APInt APInt::getLoBits(unsigned numBits) const {
678 return APIntOps::lshr(APIntOps::shl(*this, BitWidth - numBits),
679 BitWidth - numBits);
2065 void APInt::fromString(unsigned numbits, StringRef str, uint8_t radix) {
2080 assert((slen <= numbits || radix != 2) && "Insufficient bit width");
2081 assert(((slen-1)*3 <= numbits || radix != 8) && "Insufficient bit width");
2082 assert(((slen-1)*4 <= numbits || radix != 16) && "Insufficient bit width");
2083 assert((((slen-1)*64)/22 <= numbits || radix != 10) &&