Lines Matching refs:BigInt
31 class BigInt : public TaggedObject {
46 CAST_CHECK(BigInt, IsBigInt);
47 static JSHandle<BigInt> CreateBigint(JSThread *thread, uint32_t size);
53 …static JSHandle<BigInt> BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigIn…
54 static JSHandle<BigInt> BitwiseAND(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
55 static JSHandle<BigInt> BitwiseXOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
56 static JSHandle<BigInt> BitwiseOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
57 … static JSHandle<BigInt> BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen);
58 static JSHandle<BigInt> BitwiseAddOne(JSThread *thread, JSHandle<BigInt> bigint);
59 static JSHandle<EcmaString> ToString(JSThread *thread, JSHandle<BigInt> bigint,
60 uint32_t conversionToRadix = BigInt::DECIMAL);
63 static JSHandle<BigInt> UnaryMinus(JSThread *thread, JSHandle<BigInt> x);
64 static JSHandle<BigInt> BitwiseNOT(JSThread *thread, JSHandle<BigInt> x);
65 …static JSHandle<BigInt> Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exp…
67 static JSHandle<BigInt> Multiply(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
69 … static JSHandle<BigInt> FormatLeftShift(JSThread *thread, uint32_t shift, JSHandle<BigInt> bigint,
71 static void UnformattedRightShift(JSHandle<BigInt> bigint, uint32_t shift);
72 …static bool SpecialMultiplyAndSub(JSHandle<BigInt> u, JSHandle<BigInt> v, uint32_t q, JSHandle<Big…
74 static uint32_t SpecialAdd(JSHandle<BigInt> u, JSHandle<BigInt> v, uint32_t pos);
77 …static JSHandle<BigInt> DivideAndRemainderWithBigintDivisor(JSThread *thread, JSHandle<BigInt> div…
78 JSHandle<BigInt> divisor,
79 JSMutableHandle<BigInt> &remainder);
80 …static JSHandle<BigInt> DivideAndRemainderWithUint32Divisor(JSThread *thread, JSHandle<BigInt> div…
81 … uint32_t divisor, JSMutableHandle<BigInt> &remainder);
82 static JSHandle<BigInt> Divide(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
83 static JSHandle<BigInt> Remainder(JSThread *thread, JSHandle<BigInt> n, JSHandle<BigInt> d);
84 static JSHandle<BigInt> BigintAddOne(JSThread *thread, JSHandle<BigInt> x);
85 static JSHandle<BigInt> BigintSubOne(JSThread *thread, JSHandle<BigInt> x);
86 static JSHandle<BigInt> Copy(JSThread *thread, JSHandle<BigInt> x, uint32_t len);
88 static JSHandle<BigInt> Add(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
89 static JSHandle<BigInt> Subtract(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
92 …static JSHandle<BigInt> SignedRightShift(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
93 static JSHandle<BigInt> ReturnIfRightShiftOverMax(JSThread *thread, bool sign);
94 …static void RightShift(JSHandle<BigInt> bigint, JSHandle<BigInt> x, uint32_t digitMove, uint32_t b…
95 …static void JudgeRoundDown(JSHandle<BigInt> x, uint32_t digitMove, uint32_t bitsMove, uint32_t &ne…
97 …static JSHandle<BigInt> RightShiftHelper(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
99 static JSHandle<BigInt> LeftShift(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
100 … static JSHandle<BigInt> LeftShiftHelper(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
101 …static JSHandle<BigInt> BigintAdd(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y, bool r…
102 …static JSHandle<BigInt> BigintSub(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y, bool r…
105 static JSHandle<BigInt> Int32ToBigInt(JSThread *thread, const int &number);
106 static JSHandle<BigInt> Uint32ToBigInt(JSThread *thread, const uint32_t &number);
107 static JSHandle<BigInt> Int64ToBigInt(JSThread *thread, const int64_t &number);
108 static JSHandle<BigInt> Uint64ToBigInt(JSThread *thread, const uint64_t &number);
113 …static JSHandle<BigInt> CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t*…
114 …static JSHandle<BigInt> FloorMod(JSThread *thread, JSHandle<BigInt> leftVal, JSHandle<BigInt> righ…
115 static JSTaggedValue AsUintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint);
116 static JSTaggedValue AsintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint);
117 static JSTaggedNumber BigIntToNumber(JSHandle<BigInt> bigint);
118 …static ComparisonResult CompareWithNumber(JSHandle<BigInt> bigint, JSHandle<JSTaggedValue> number);
119 static JSHandle<BigInt> GetUint64MaxBigint(JSThread *thread);
120 static JSHandle<BigInt> GetInt64MaxBigint(JSThread *thread);
170 static bool Equal(const BigInt *x, const BigInt *y);
171 static bool LessThan(const BigInt *x, const BigInt *y);
172 static ComparisonResult Compare(const BigInt *x, const BigInt *y);
173 static ComparisonResult AbsolutelyCompare(const BigInt *x, const BigInt *y);
183 static JSHandle<BigInt> SetBigInt(JSThread *thread, const CString &numStr,
184 uint32_t currentRadix = BigInt::DECIMAL);
185 static CString GetBinary(const BigInt *bigint);
186 static JSHandle<BigInt> RightTruncate(JSThread *thread, JSHandle<BigInt> x);
193 static_assert((BigInt::DATA_OFFSET % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);