Lines Matching refs:numbits
75 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) {
105 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal)
106 : BitWidth(numBits), VAL(0) {
110 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[])
111 : BitWidth(numBits), VAL(0) {
115 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
116 : BitWidth(numbits), VAL(0) {
118 fromString(numbits, Str, radix);
767 /// HiBits - This function returns the high "numBits" bits of this APInt.
768 APInt APInt::getHiBits(unsigned numBits) const {
769 return APIntOps::lshr(*this, BitWidth - numBits);
772 /// LoBits - This function returns the low "numBits" bits of this APInt.
773 APInt APInt::getLoBits(unsigned numBits) const {
774 return APIntOps::lshr(APIntOps::shl(*this, BitWidth - numBits),
775 BitWidth - numBits);
2123 void APInt::fromString(unsigned numbits, StringRef str, uint8_t radix) {
2138 assert((slen <= numbits || radix != 2) && "Insufficient bit width");
2139 assert(((slen-1)*3 <= numbits || radix != 8) && "Insufficient bit width");
2140 assert(((slen-1)*4 <= numbits || radix != 16) && "Insufficient bit width");
2141 assert((((slen-1)*64)/22 <= numbits || radix != 10) &&