Lines Matching refs:cBits
930 uint32_t cBits = RTBigNumBitWidth(pBigNum);
931 return (cBits + 7) / 8;
1741 * Shifts the magnitude left by @a cBits.
1748 * @param cBits The shift count.
1750 static int rtBigNumMagnitudeShiftLeft(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits)
1753 if (cBits)
1758 if (cBitsNew + cBits > cBitsNew)
1760 cBitsNew += cBits;
1770 Assert(ASMMemIsAllU32(pauDst, (cBits / RTBIGNUM_ELEMENT_BITS) * RTBIGNUM_ELEMENT_SIZE, 0) == NULL);
1771 pauDst += cBits / RTBIGNUM_ELEMENT_BITS;
1773 cBits &= RTBIGNUM_ELEMENT_BITS - 1;
1774 if (cBits)
1780 pauDst[i] = (uCur << cBits) | (uPrev >> (RTBIGNUM_ELEMENT_BITS - cBits));
1783 uPrev >>= RTBIGNUM_ELEMENT_BITS - cBits;
1804 RTDECL(int) RTBigNumShiftLeft(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits)
1819 rc = rtBigNumMagnitudeShiftLeft(pResult, pValue, cBits);
1830 * Shifts the magnitude right by @a cBits.
1837 * @param cBits The shift count.
1839 static int rtBigNumMagnitudeShiftRight(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits)
1842 if (cBits)
1845 if (cBitsNew > cBits)
1847 cBitsNew -= cBits;
1856 pauSrc += cBits / RTBIGNUM_ELEMENT_BITS;
1858 cBits &= RTBIGNUM_ELEMENT_BITS - 1;
1859 if (cBits)
1865 pauDst[i] = (uCur >> cBits) | (uPrev << (RTBIGNUM_ELEMENT_BITS - cBits));
1882 RTDECL(int) RTBigNumShiftRight(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits)
1897 rc = rtBigNumMagnitudeShiftRight(pResult, pValue, cBits);