Lines Matching defs:bitsMove
890 void BigInt::RightShift(JSHandle<BigInt> bigint, JSHandle<BigInt> x, uint32_t digitMove, uint32_t bitsMove)
893 if (bitsMove == 0) {
898 uint32_t carry = x->GetDigit(digitMove) >> bitsMove;
903 bigint->SetDigit(i, (value << (DATEBITS - bitsMove)) | carry);
904 carry = value >> bitsMove;
910 void BigInt::JudgeRoundDown(JSHandle<BigInt> x, uint32_t digitMove, uint32_t bitsMove, uint32_t &needLen,
913 uint32_t stamp = (static_cast<uint32_t>(1U) << bitsMove) - 1;
925 if (roundDown && bitsMove == 0) {
944 uint32_t bitsMove = moveNum % DATEBITS;
953 JudgeRoundDown(x, digitMove, bitsMove, needLen, roundDown);
958 RightShift(bigint, x, digitMove, bitsMove);
986 uint32_t bitsMove = moveNum % DATEBITS;
987 // If bitsMove is not zero, needLen needs to be increased by 1
988 uint32_t needLen = digitMove + x->GetLength() + static_cast<uint32_t>(!!bitsMove);
991 if (bitsMove == 0) {
1002 bigint->SetDigit(index + digitMove, (value << bitsMove) | carry);
1003 carry = value >> (DATEBITS - bitsMove);