Lines Matching refs:dst

2322 APInt::tcSet(integerPart *dst, integerPart part, unsigned int parts)
2328 dst[0] = part;
2330 dst[i] = 0;
2335 APInt::tcAssign(integerPart *dst, const integerPart *src, unsigned int parts)
2340 dst[i] = src[i];
2422 APInt::tcExtract(integerPart *dst, unsigned int dstCount,const integerPart *src,
2431 tcAssign (dst, src + firstSrcPart, dstParts);
2434 tcShiftRight (dst, dstParts, shift);
2442 dst[dstParts - 1] |= ((src[firstSrcPart + dstParts] & mask)
2446 dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth);
2451 dst[dstParts++] = 0;
2456 APInt::tcAdd(integerPart *dst, const integerPart *rhs,
2466 l = dst[i];
2468 dst[i] += rhs[i] + 1;
2469 c = (dst[i] <= l);
2471 dst[i] += rhs[i];
2472 c = (dst[i] < l);
2481 APInt::tcSubtract(integerPart *dst, const integerPart *rhs,
2491 l = dst[i];
2493 dst[i] -= rhs[i] + 1;
2494 c = (dst[i] >= l);
2496 dst[i] -= rhs[i];
2497 c = (dst[i] > l);
2506 APInt::tcNegate(integerPart *dst, unsigned int parts)
2508 tcComplement(dst, parts);
2509 tcIncrement(dst, parts);
2524 APInt::tcMultiplyPart(integerPart *dst, const integerPart *src,
2532 assert(dst <= src || dst >= src + srcParts);
2580 if (low + dst[i] < low)
2582 dst[i] += low;
2584 dst[i] = low;
2592 dst[i] = carry;
2617 APInt::tcMultiply(integerPart *dst, const integerPart *lhs,
2623 assert(dst != lhs && dst != rhs);
2626 tcSet(dst, 0, parts);
2629 overflow |= tcMultiplyPart(&dst[i], lhs, rhs[i], 0, parts,
2640 APInt::tcFullMultiply(integerPart *dst, const integerPart *lhs,
2646 return tcFullMultiply (dst, rhs, lhs, rhsParts, lhsParts);
2650 assert(dst != lhs && dst != rhs);
2652 tcSet(dst, 0, rhsParts);
2655 tcMultiplyPart(&dst[n], rhs, lhs[n], 0, rhsParts, rhsParts + 1, true);
2659 return n - (dst[n - 1] == 0);
2721 APInt::tcShiftLeft(integerPart *dst, unsigned int parts, unsigned int count)
2735 /* dst[i] comes from the two parts src[i - jump] and, if we have
2737 part = dst[parts - jump];
2741 part |= dst[parts - jump - 1] >> (integerPartWidth - shift);
2744 dst[parts] = part;
2748 dst[--parts] = 0;
2755 APInt::tcShiftRight(integerPart *dst, unsigned int parts, unsigned int count)
2772 part = dst[i + jump];
2776 part |= dst[i + jump + 1] << (integerPartWidth - shift);
2780 dst[i] = part;
2787 APInt::tcAnd(integerPart *dst, const integerPart *rhs, unsigned int parts)
2792 dst[i] &= rhs[i];
2797 APInt::tcOr(integerPart *dst, const integerPart *rhs, unsigned int parts)
2802 dst[i] |= rhs[i];
2807 APInt::tcXor(integerPart *dst, const integerPart *rhs, unsigned int parts)
2812 dst[i] ^= rhs[i];
2817 APInt::tcComplement(integerPart *dst, unsigned int parts)
2822 dst[i] = ~dst[i];
2846 APInt::tcIncrement(integerPart *dst, unsigned int parts)
2851 if (++dst[i] != 0)
2859 APInt::tcDecrement(integerPart *dst, unsigned int parts) {
2863 if (dst[i]--)
2874 APInt::tcSetLeastSignificantBits(integerPart *dst, unsigned int parts,
2881 dst[i++] = ~(integerPart) 0;
2886 dst[i++] = ~(integerPart) 0 >> (integerPartWidth - bits);
2889 dst[i++] = 0;