Home | History | Annotate | Download | only in Support

Lines Matching refs:numbits

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