Lines Matching full:slen
616 size_t slen = str.size();
623 slen--;
624 assert(slen && "String is only a sign, needs a value.");
630 return slen + isNegative;
632 return slen * 3 + isNegative;
634 return slen * 4 + isNegative;
639 // with a computation of roughly slen*64/20 and then adjust by the value of
647 = radix == 10? (slen == 1 ? 4 : slen * 64/18)
648 : (slen == 1 ? 7 : slen * 16/3);
651 APInt tmp(sufficient, StringRef(p, slen), radix);
2072 size_t slen = str.size();
2076 slen--;
2077 assert(slen && "String is only a sign, needs a value.");
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) &&
2103 if (slen > 1) {