Lines Matching refs:integerPartWidth

2290 static_assert(integerPartWidth % 2 == 0, "Part width must be divisible by 2!");
2300 assert(bits != 0 && bits <= integerPartWidth); in lowBitMask()
2302 return ~(integerPart) 0 >> (integerPartWidth - bits); in lowBitMask()
2309 return part & lowBitMask(integerPartWidth / 2); in lowHalf()
2316 return part >> (integerPartWidth / 2); in highHalf()
2377 return (parts[bit / integerPartWidth] & in tcExtractBit()
2378 ((integerPart) 1 << bit % integerPartWidth)) != 0; in tcExtractBit()
2385 parts[bit / integerPartWidth] |= (integerPart) 1 << (bit % integerPartWidth); in tcSetBit()
2392 parts[bit / integerPartWidth] &= in tcClearBit()
2393 ~((integerPart) 1 << (bit % integerPartWidth)); in tcClearBit()
2407 return lsb + i * integerPartWidth; in tcLSB()
2427 return msb + n * integerPartWidth; in tcMSB()
2444 dstParts = (srcBits + integerPartWidth - 1) / integerPartWidth; in tcExtract()
2447 firstSrcPart = srcLSB / integerPartWidth; in tcExtract()
2450 shift = srcLSB % integerPartWidth; in tcExtract()
2456 n = dstParts * integerPartWidth - shift; in tcExtract()
2460 << n % integerPartWidth); in tcExtract()
2462 if (srcBits % integerPartWidth) in tcExtract()
2463 dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth); in tcExtract()
2577 mid <<= integerPartWidth / 2; in tcMultiplyPart()
2584 mid <<= integerPartWidth / 2; in tcMultiplyPart()
2704 shiftCount = parts * integerPartWidth - shiftCount; in tcDivide()
2705 n = shiftCount / integerPartWidth; in tcDivide()
2706 mask = (integerPart) 1 << (shiftCount % integerPartWidth); in tcDivide()
2729 mask = (integerPart) 1 << (integerPartWidth - 1), n--; in tcDivide()
2744 jump = count / integerPartWidth; in tcShiftLeft()
2745 shift = count % integerPartWidth; in tcShiftLeft()
2758 part |= dst[parts - jump - 1] >> (integerPartWidth - shift); in tcShiftLeft()
2778 jump = count / integerPartWidth; in tcShiftRight()
2779 shift = count % integerPartWidth; in tcShiftRight()
2793 part |= dst[i + jump + 1] << (integerPartWidth - shift); in tcShiftRight()
2897 while (bits > integerPartWidth) { in tcSetLeastSignificantBits()
2899 bits -= integerPartWidth; in tcSetLeastSignificantBits()
2903 dst[i++] = ~(integerPart) 0 >> (integerPartWidth - bits); in tcSetLeastSignificantBits()