Lines Matching refs:rVal
52 void BigInt::MakeBigInt( const BigInt& rVal ) in MakeBigInt() argument
54 if ( rVal.bIsBig ) in MakeBigInt()
56 memcpy( (void*)this, (const void*)&rVal, sizeof( BigInt ) ); in MakeBigInt()
62 long nTmp = rVal.nVal; in MakeBigInt()
64 nVal = rVal.nVal; in MakeBigInt()
122 void BigInt::Mult( const BigInt &rVal, sal_uInt16 nMul ) in Mult() argument
125 for ( int i = 0; i < rVal.nLen; i++ ) in Mult()
127 sal_uInt32 nTmp = (sal_uInt32)rVal.nNum[i] * (sal_uInt32)nMul + nK; in Mult()
134 nNum[rVal.nLen] = nK; in Mult()
135 nLen = rVal.nLen + 1; in Mult()
138 nLen = rVal.nLen; in Mult()
141 bIsNeg = rVal.bIsNeg; in Mult()
163 sal_Bool BigInt::IsLess( const BigInt& rVal ) const in IsLess()
165 if ( rVal.nLen < nLen) in IsLess()
167 if ( rVal.nLen > nLen ) in IsLess()
171 for ( i = nLen - 1; i > 0 && nNum[i] == rVal.nNum[i]; i-- ) in IsLess()
174 return rVal.nNum[i] < nNum[i]; in IsLess()
790 BigInt& BigInt::operator+=( const BigInt& rVal ) in operator +=() argument
792 if ( !bIsBig && !rVal.bIsBig ) in operator +=()
794 if( nVal <= MY_MAXLONG && rVal.nVal <= MY_MAXLONG in operator +=()
795 && nVal >= MY_MINLONG && rVal.nVal >= MY_MINLONG ) in operator +=()
797 nVal += rVal.nVal; in operator +=()
801 if( (nVal < 0) != (rVal.nVal < 0) ) in operator +=()
803 nVal += rVal.nVal; in operator +=()
810 aTmp2.MakeBigInt( rVal ); in operator +=()
818 BigInt& BigInt::operator-=( const BigInt& rVal ) in operator -=() argument
820 if ( !bIsBig && !rVal.bIsBig ) in operator -=()
822 if ( nVal <= MY_MAXLONG && rVal.nVal <= MY_MAXLONG && in operator -=()
823 nVal >= MY_MINLONG && rVal.nVal >= MY_MINLONG ) in operator -=()
825 nVal -= rVal.nVal; in operator -=()
829 if ( (nVal < 0) == (rVal.nVal < 0) ) in operator -=()
831 nVal -= rVal.nVal; in operator -=()
838 aTmp2.MakeBigInt( rVal ); in operator -=()
846 BigInt& BigInt::operator*=( const BigInt& rVal ) in operator *=() argument
848 if ( !bIsBig && !rVal.bIsBig in operator *=()
849 && nVal <= MY_MAXSHORT && rVal.nVal <= MY_MAXSHORT in operator *=()
850 && nVal >= MY_MINSHORT && rVal.nVal >= MY_MINSHORT ) in operator *=()
853 nVal *= rVal.nVal; in operator *=()
858 aTmp1.MakeBigInt( rVal ); in operator *=()
868 BigInt& BigInt::operator/=( const BigInt& rVal ) in operator /=() argument
870 if ( !rVal.bIsBig ) in operator /=()
872 if ( rVal.nVal == 0 ) in operator /=()
881 nVal /= rVal.nVal; in operator /=()
885 if ( rVal.nVal == 1 ) in operator /=()
888 if ( rVal.nVal == -1 ) in operator /=()
894 if ( rVal.nVal <= (long)0xFFFF && rVal.nVal >= -(long)0xFFFF ) in operator /=()
898 if ( rVal.nVal < 0 ) in operator /=()
900 nTmp = (sal_uInt16) -rVal.nVal; in operator /=()
904 nTmp = (sal_uInt16) rVal.nVal; in operator /=()
912 if ( ABS_IsLess( rVal ) ) in operator /=()
921 aTmp2.MakeBigInt( rVal ); in operator /=()
929 void BigInt::DivMod( const BigInt& rVal, BigInt& rMod ) in DivMod() argument
931 if ( !rVal.bIsBig ) in DivMod()
933 if ( rVal.nVal == 0 ) in DivMod()
942 rMod = BigInt( nVal % rVal.nVal ); in DivMod()
943 nVal /= rVal.nVal; in DivMod()
947 if ( rVal.nVal == 1 ) in DivMod()
953 if ( rVal.nVal == -1 ) in DivMod()
960 if ( rVal.nVal <= (long)0xFFFF && rVal.nVal >= -(long)0xFFFF ) in DivMod()
964 if ( rVal.nVal < 0 ) in DivMod()
966 nTmp = (sal_uInt16) -rVal.nVal; in DivMod()
970 nTmp = (sal_uInt16) rVal.nVal; in DivMod()
979 if ( ABS_IsLess( rVal ) ) in DivMod()
989 aTmp2.MakeBigInt( rVal ); in DivMod()
998 BigInt& BigInt::operator%=( const BigInt& rVal ) in operator %=() argument
1000 if ( !rVal.bIsBig ) in operator %=()
1002 if ( rVal.nVal == 0 ) in operator %=()
1011 nVal %= rVal.nVal; in operator %=()
1015 if ( rVal.nVal <= (long)0xFFFF && rVal.nVal >= -(long)0xFFFF ) in operator %=()
1019 if ( rVal.nVal < 0 ) in operator %=()
1021 nTmp = (sal_uInt16) -rVal.nVal; in operator %=()
1025 nTmp = (sal_uInt16) rVal.nVal; in operator %=()
1033 if ( ABS_IsLess( rVal ) ) in operator %=()
1039 aTmp2.MakeBigInt( rVal ); in operator %=()