Lines Matching refs:pSrc

776  * @param   pSrc            The source number.
778 static int rtBigNumCloneInternal(PRTBIGNUM pBigNum, PCRTBIGNUM pSrc)
780 Assert(!pSrc->fCurScrambled);
787 pBigNum->fNegative = pSrc->fNegative;
788 pBigNum->fSensitive = pSrc->fSensitive;
789 pBigNum->cUsed = pSrc->cUsed;
790 if (pSrc->cUsed)
800 memcpy(pBigNum->pauElements, pSrc->pauElements, pBigNum->cUsed * RTBIGNUM_ELEMENT_SIZE);
814 RTDECL(int) RTBigNumClone(PRTBIGNUM pBigNum, PCRTBIGNUM pSrc)
816 int rc = rtBigNumUnscramble((PRTBIGNUM)pSrc);
819 RTBIGNUM_ASSERT_VALID(pSrc);
820 rc = rtBigNumCloneInternal(pBigNum, pSrc);
823 rtBigNumScramble((PRTBIGNUM)pSrc);
849 RTDECL(int) RTBigNumAssign(PRTBIGNUM pDst, PCRTBIGNUM pSrc)
851 AssertReturn(pDst->fSensitive >= pSrc->fSensitive, VERR_BIGNUM_SENSITIVE_INPUT);
856 rc = rtBigNumUnscramble((PRTBIGNUM)pSrc);
859 RTBIGNUM_ASSERT_VALID(pSrc);
860 if ( pDst->fSensitive == pSrc->fSensitive
863 if (pDst->cAllocated >= pSrc->cUsed)
865 if (pDst->cUsed > pSrc->cUsed)
866 RT_BZERO(&pDst->pauElements[pSrc->cUsed], (pDst->cUsed - pSrc->cUsed) * RTBIGNUM_ELEMENT_SIZE);
867 pDst->cUsed = pSrc->cUsed;
868 pDst->fNegative = pSrc->fNegative;
869 memcpy(pDst->pauElements, pSrc->pauElements, pSrc->cUsed * RTBIGNUM_ELEMENT_SIZE);
873 rc = rtBigNumGrow(pDst, pSrc->cUsed, pSrc->cUsed);
876 pDst->fNegative = pSrc->fNegative;
877 memcpy(pDst->pauElements, pSrc->pauElements, pSrc->cUsed * RTBIGNUM_ELEMENT_SIZE);
883 rtBigNumScramble((PRTBIGNUM)pSrc);
1177 * Copies the magnitude of on number (@a pSrc) to another (@a pBigNum).
1184 * @param pSrc The source number.
1186 DECLINLINE(int) rtBigNumMagnitudeCopy(PRTBIGNUM pDst, PCRTBIGNUM pSrc)
1188 int rc = rtBigNumSetUsed(pDst, pSrc->cUsed);
1190 memcpy(pDst->pauElements, pSrc->pauElements, pSrc->cUsed * RTBIGNUM_ELEMENT_SIZE);