• Home
  • Raw
  • Download

Lines Matching refs:digitMove

845 void BigInt::RightShift(JSHandle<BigInt> bigint, JSHandle<BigInt> x, uint32_t digitMove, uint32_t b…  in RightShift()  argument
849 for (uint32_t i = digitMove; i < size; i++) { in RightShift()
850 bigint->SetDigit(i - digitMove, x->GetDigit(i)); in RightShift()
853 uint32_t carry = x->GetDigit(digitMove) >> bitsMove; in RightShift()
854 uint32_t last = size - digitMove - 1; in RightShift()
856 uint32_t value = x->GetDigit(i + digitMove + 1); in RightShift()
864 void BigInt::JudgeRoundDown(JSHandle<BigInt> x, uint32_t digitMove, uint32_t bitsMove, uint32_t &ne… in JudgeRoundDown() argument
868 if (x->GetDigit(digitMove) & stamp) { in JudgeRoundDown()
871 for (uint32_t i = 0; i < digitMove; i++) { in JudgeRoundDown()
896 uint32_t digitMove = moveNum / DATEBITS; in RightShiftHelper() local
898 if (x->GetLength() <= digitMove) { in RightShiftHelper()
901 uint32_t needLen = x->GetLength() - digitMove; in RightShiftHelper()
906 JudgeRoundDown(x, digitMove, bitsMove, needLen, roundDown); in RightShiftHelper()
911 RightShift(bigint, x, digitMove, bitsMove); in RightShiftHelper()
938 uint32_t digitMove = moveNum / DATEBITS; in LeftShiftHelper() local
941 uint32_t needLen = digitMove + x->GetLength() + static_cast<uint32_t>(!!bitsMove); in LeftShiftHelper()
945 uint32_t index = digitMove; in LeftShiftHelper()
947 bigint->SetDigit(index, x->GetDigit(index - digitMove)); in LeftShiftHelper()
955 bigint->SetDigit(index + digitMove, (value << bitsMove) | carry); in LeftShiftHelper()
960 ASSERT(index + digitMove < needLen); in LeftShiftHelper()
961 bigint->SetDigit(index + digitMove, carry); in LeftShiftHelper()