Home
last modified time | relevance | path

Searched refs:Digits (Results 1 – 25 of 52) sorted by relevance

123

/third_party/node/deps/v8/src/bigint/
Dbigint-internal.h34 void Multiply(RWDigits Z, Digits X, Digits Y);
35 void MultiplySingle(RWDigits Z, Digits X, digit_t y);
36 void MultiplySchoolbook(RWDigits Z, Digits X, Digits Y);
38 void MultiplyKaratsuba(RWDigits Z, Digits X, Digits Y);
39 void KaratsubaStart(RWDigits Z, Digits X, Digits Y, RWDigits scratch, int k);
40 void KaratsubaChunk(RWDigits Z, Digits X, Digits Y, RWDigits scratch);
41 void KaratsubaMain(RWDigits Z, Digits X, Digits Y, RWDigits scratch, int n);
43 void Divide(RWDigits Q, Digits A, Digits B);
44 void DivideSingle(RWDigits Q, digit_t* remainder, Digits A, digit_t b);
45 void DivideSchoolbook(RWDigits Q, RWDigits R, Digits A, Digits B);
[all …]
Dbigint.h57 class Digits {
60 Digits(digit_t* mem, int len) : digits_(mem), len_(len) { in Digits() function
67 Digits(Digits src, int offset, int len) in Digits() function
73 Digits operator+(int i) {
75 return Digits(digits_ + i, len_ - i);
89 bool operator==(const Digits& other) const {
128 class RWDigits : public Digits {
130 RWDigits(digit_t* mem, int len) : Digits(mem, len) {} in RWDigits()
131 RWDigits(RWDigits src, int offset, int len) : Digits(src, offset, len) {} in RWDigits()
214 inline int Compare(Digits A, Digits B) { in Compare()
[all …]
Ddiv-burnikel.cc27 int SpecialCompare(digit_t a_high, Digits A, Digits B) { in SpecialCompare()
61 void DivideBasecase(RWDigits Q, RWDigits R, Digits A, Digits B);
62 void D3n2n(RWDigits Q, RWDigits R, Digits A1A2, Digits A3, Digits B);
63 void D2n1n(RWDigits Q, RWDigits R, Digits A, Digits B);
70 void BZ::DivideBasecase(RWDigits Q, RWDigits R, Digits A, Digits B) { in DivideBasecase()
96 void BZ::D3n2n(RWDigits Q, RWDigits R, Digits A1A2, Digits A3, Digits B) { in D3n2n()
106 Digits A1(A1A2, n, n); in D3n2n()
108 Digits B1(B, n, n); in D3n2n()
109 Digits B2(B, 0, n); in D3n2n()
132 Digits A2(A1A2, 0, n); in D3n2n()
[all …]
Dvector-arithmetic.h17 digit_t AddAndReturnOverflow(RWDigits Z, Digits X);
20 digit_t SubAndReturnBorrow(RWDigits Z, Digits X);
44 digit_t AddAndReturnCarry(RWDigits Z, Digits X, Digits Y);
45 digit_t SubtractAndReturnBorrow(RWDigits Z, Digits X, Digits Y);
47 inline bool IsDigitNormalized(Digits X) { return X.len() == 0 || X.msd() != 0; } in IsDigitNormalized()
48 inline bool IsBitNormalized(Digits X) { in IsBitNormalized()
52 inline bool GreaterThanOrEqual(Digits A, Digits B) { in GreaterThanOrEqual()
56 inline int BitLength(Digits X) { in BitLength()
Dmul-karatsuba.cc69 void KaratsubaSubtractionHelper(RWDigits result, Digits X, Digits Y, in KaratsubaSubtractionHelper()
91 void ProcessorImpl::MultiplyKaratsuba(RWDigits Z, Digits X, Digits Y) { in MultiplyKaratsuba()
103 void ProcessorImpl::KaratsubaStart(RWDigits Z, Digits X, Digits Y, in KaratsubaStart()
111 Digits X0(X, 0, k); in KaratsubaStart()
112 Digits Y1 = Y + std::min(k, Y.len()); in KaratsubaStart()
120 Digits Y0(Y, 0, k); in KaratsubaStart()
122 Digits Xi(X, i, k); in KaratsubaStart()
137 void ProcessorImpl::KaratsubaChunk(RWDigits Z, Digits X, Digits Y, in KaratsubaChunk()
151 void ProcessorImpl::KaratsubaMain(RWDigits Z, Digits X, Digits Y, in KaratsubaMain()
165 Digits X0(X, 0, n2); in KaratsubaMain()
[all …]
Dbitwise.cc13 void BitwiseAnd_PosPos(RWDigits Z, Digits X, Digits Y) { in BitwiseAnd_PosPos()
21 void BitwiseAnd_NegNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseAnd_NegNeg()
42 void BitwiseAnd_PosNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseAnd_PosNeg()
52 void BitwiseOr_PosPos(RWDigits Z, Digits X, Digits Y) { in BitwiseOr_PosPos()
62 void BitwiseOr_NegNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseOr_NegNeg()
79 void BitwiseOr_PosNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseOr_PosNeg()
91 void BitwiseXor_PosPos(RWDigits Z, Digits X, Digits Y) { in BitwiseXor_PosPos()
104 void BitwiseXor_NegNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseXor_NegNeg()
122 void BitwiseXor_PosNeg(RWDigits Z, Digits X, Digits Y) { in BitwiseXor_PosNeg()
136 void LeftShift(RWDigits Z, Digits X, digit_t shift) { in LeftShift()
[all …]
Dvector-arithmetic.cc13 digit_t AddAndReturnOverflow(RWDigits Z, Digits X) { in AddAndReturnOverflow()
27 digit_t SubAndReturnBorrow(RWDigits Z, Digits X) { in SubAndReturnBorrow()
41 void Add(RWDigits Z, Digits X, Digits Y) { in Add()
59 void Subtract(RWDigits Z, Digits X, Digits Y) { in Subtract()
75 digit_t AddAndReturnCarry(RWDigits Z, Digits X, Digits Y) { in AddAndReturnCarry()
84 digit_t SubtractAndReturnBorrow(RWDigits Z, Digits X, Digits Y) { in SubtractAndReturnBorrow()
93 bool AddSigned(RWDigits Z, Digits X, bool x_negative, Digits Y, in AddSigned()
107 bool SubtractSigned(RWDigits Z, Digits X, bool x_negative, Digits Y, in SubtractSigned()
121 void AddOne(RWDigits Z, Digits X) { in AddOne()
130 void SubtractOne(RWDigits Z, Digits X) { in SubtractOne()
Dbigint-internal.cc36 void ProcessorImpl::Multiply(RWDigits Z, Digits X, Digits Y) { in Multiply()
52 void ProcessorImpl::Divide(RWDigits Q, Digits A, Digits B) { in Divide()
82 void ProcessorImpl::Modulo(RWDigits R, Digits A, Digits B) { in Modulo()
116 Status Processor::Multiply(RWDigits Z, Digits X, Digits Y) { in Multiply()
122 Status Processor::Divide(RWDigits Q, Digits A, Digits B) { in Divide()
128 Status Processor::Modulo(RWDigits R, Digits A, Digits B) { in Modulo()
Dmul-toom.cc61 void ProcessorImpl::Toom3Main(RWDigits Z, Digits X, Digits Y) { in Toom3Main()
65 Digits X0(X, 0, i); in Toom3Main()
66 Digits X1(X, i, i); in Toom3Main()
67 Digits X2(X, 2 * i, i); in Toom3Main()
68 Digits Y0(Y, 0, i); in Toom3Main()
69 Digits Y1(Y, i, i); in Toom3Main()
70 Digits Y2(Y, 2 * i, i); in Toom3Main()
160 Digits R0 = r_0; in Toom3Main()
161 Digits R4 = r_inf; in Toom3Main()
203 void ProcessorImpl::MultiplyToomCook(RWDigits Z, Digits X, Digits Y) { in MultiplyToomCook()
[all …]
Ddiv-barrett.cc26 void DcheckIntegerPartRange(Digits X, digit_t min, digit_t max) { in DcheckIntegerPartRange()
42 void ProcessorImpl::InvertBasecase(RWDigits Z, Digits V, RWDigits scratch) { in InvertBasecase()
70 void ProcessorImpl::InvertNewton(RWDigits Z, Digits V, RWDigits scratch) { in InvertNewton()
103 Digits top_part_of_v(V, vn - initial_digits, initial_digits); in InvertNewton()
123 Digits T(V, V.len() - t_len, t_len); in InvertNewton()
162 Digits W_part(W, W.len() - vn - 1, vn); in InvertNewton()
163 Digits U_part(U, U.len() - vn - 1, vn); in InvertNewton()
187 void ProcessorImpl::Invert(RWDigits Z, Digits V, RWDigits scratch) { in Invert()
215 void ProcessorImpl::DivideBarrett(RWDigits Q, RWDigits R, Digits A, Digits B, in DivideBarrett()
216 Digits I, RWDigits scratch) { in DivideBarrett()
[all …]
Ddiv-helpers.h16 void LeftShift(RWDigits Z, Digits X, int shift);
17 void RightShift(RWDigits Z, Digits X, int shift);
19 inline void PutAt(RWDigits Z, Digits A, int count) { in PutAt()
36 class ShiftedDigits : public Digits {
38 explicit ShiftedDigits(Digits& original, int shift = -1,
40 : Digits(original.digits_, original.len_) {
Ddiv-schoolbook.cc29 void ProcessorImpl::DivideSingle(RWDigits Q, digit_t* remainder, Digits A, in DivideSingle()
58 inline digit_t InplaceAdd(RWDigits Z, Digits X) { in InplaceAdd()
63 inline digit_t InplaceSub(RWDigits Z, Digits X) { in InplaceSub()
76 bool QLengthOK(Digits Q, Digits A, Digits B) { in QLengthOK()
80 if (GreaterThanOrEqual(Digits(A, A.len() - B.len(), B.len()), B)) { in QLengthOK()
94 void ProcessorImpl::DivideSchoolbook(RWDigits Q, RWDigits R, Digits A, in DivideSchoolbook()
95 Digits B) { in DivideSchoolbook()
Dtostring.cc79 char* DivideByMagic(RWDigits rest, Digits input, char* output) { in DivideByMagic()
121 ToStringFormatter(Digits X, int radix, bool sign, char* out, in ToStringFormatter()
151 Digits dividend = digits_; in Classic()
177 char* ProcessLevel(RecursionLevel* level, Digits chunk, char* out,
205 Digits digits_;
328 Digits GetInverse(int dividend_length);
355 Digits inverse_{nullptr, 0};
408 Digits input(divisor_, divisor_.len() - inverse_len, inverse_len); in ComputeInverse()
414 Digits RecursionLevel::GetInverse(int dividend_length) { in GetInverse()
446 char* ToStringFormatter::ProcessLevel(RecursionLevel* level, Digits chunk, in ProcessLevel()
[all …]
Dfromstring.cc153 Digits p_in(parts, start, part_len); in FromStringLarge()
154 Digits p_in2(parts, start + part_len, part_len); in FromStringLarge()
155 Digits m_in(multipliers, start, part_len); in FromStringLarge()
156 Digits m_in2(multipliers, start + part_len, part_len); in FromStringLarge()
170 Digits m_in_prev(multipliers, prev_start, part_len); in FromStringLarge()
171 Digits m_in2_prev(multipliers, prev_start + part_len, part_len); in FromStringLarge()
175 Digits m_out_prev(new_multipliers, prev_start, new_part_len); in FromStringLarge()
187 Digits p_in(parts, i * part_len, part_len); in FromStringLarge()
188 Digits m_in(multipliers, i * part_len, part_len); in FromStringLarge()
245 Digits parts(accumulator->heap_parts_.size() > 0 in FromStringBasePowerOfTwo()
Ddiv-helpers.cc14 void Copy(RWDigits Z, Digits X) { in Copy()
25 void LeftShift(RWDigits Z, Digits X, int shift) { in LeftShift()
47 void RightShift(RWDigits Z, Digits X, int shift) { in RightShift()
Dmul-schoolbook.cc13 void ProcessorImpl::MultiplySingle(RWDigits Z, Digits X, digit_t y) { in MultiplySingle()
49 void ProcessorImpl::MultiplySchoolbook(RWDigits Z, Digits X, Digits Y) { in MultiplySchoolbook()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DScaledNumber.h52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument
57 if (!++Digits) in getRounded()
60 return std::make_pair(Digits, Scale); in getRounded()
64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument
66 return getRounded(Digits, Scale, ShouldRound); in getRounded32()
70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument
72 return getRounded(Digits, Scale, ShouldRound); in getRounded64()
79 inline std::pair<DigitsT, int16_t> getAdjusted(uint64_t Digits,
84 if (Width == 64 || Digits <= std::numeric_limits<DigitsT>::max())
85 return std::make_pair(Digits, Scale);
[all …]
DFormatProviders.h133 size_t Digits = 0;
135 Digits = consumeNumHexDigits(Style, HS, 0);
136 write_hex(Stream, V, HS, Digits);
146 Style.consumeInteger(10, Digits);
148 write_integer(Stream, V, Digits, IS);
183 size_t Digits = consumeNumHexDigits(Style, HS, sizeof(void *) * 2);
184 write_hex(Stream, reinterpret_cast<std::uintptr_t>(V), HS, Digits);
/third_party/skia/third_party/externals/icu/source/data/lang/
Den.txt942 no{"Sort Digits Individually"}
943 yes{"Sort Digits Numerically"}
1058 digit{"Digits"}
1109 adlm{"Adlam Digits"}
1110 ahom{"Ahom Digits"}
1111 arab{"Arabic-Indic Digits"}
1112 arabext{"Extended Arabic-Indic Digits"}
1115 bali{"Balinese Digits"}
1116 beng{"Bangla Digits"}
1117 bhks{"Bhaiksuki Digits"}
[all …]
Den_IN.txt16 beng{"Bengali Digits"}
17 orya{"Oriya Digits"}
/third_party/icu/icu4c/source/data/lang/
Den.txt997 no{"Sort Digits Individually"}
998 yes{"Sort Digits Numerically"}
1002 digit{"Digits"}
1184 adlm{"Adlam Digits"}
1185 ahom{"Ahom Digits"}
1186 arab{"Arabic-Indic Digits"}
1187 arabext{"Extended Arabic-Indic Digits"}
1190 bali{"Balinese Digits"}
1191 beng{"Bangla Digits"}
1192 bhks{"Bhaiksuki Digits"}
[all …]
Dar_XB.txt920 no{"؜‮Sort‬؜ ؜‮Digits‬؜ ؜‮Individually‬؜"}
921 yes{"؜‮Sort‬؜ ؜‮Digits‬؜ ؜‮Numerically‬؜"}
1045 digit{"؜‮Digits‬؜"}
1103 adlm{"؜‮Adlam‬؜ ؜‮Digits‬؜"}
1104 ahom{"؜‮Ahom‬؜ ؜‮Digits‬؜"}
1105 arab{"؜‮Arabic‬؜-؜‮Indic‬؜ ؜‮Digits‬؜"}
1106 arabext{"؜‮Extended‬؜ ؜‮Arabic‬؜-؜‮Indic‬؜ ؜‮Digits‬؜"}
1109 bali{"؜‮Balinese‬؜ ؜‮Digits‬؜"}
1110 beng{"؜‮Bangla‬؜ ؜‮Digits‬؜"}
1111 bhks{"؜‮Bhaiksuki‬؜ ؜‮Digits‬؜"}
[all …]
Den_IN.txt15 beng{"Bengali Digits"}
16 orya{"Oriya Digits"}
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFormatProviders.h134 size_t Digits = 0;
136 Digits = consumeNumHexDigits(Style, HS, 0);
137 write_hex(Stream, V, HS, Digits);
147 Style.consumeInteger(10, Digits);
149 write_integer(Stream, V, Digits, IS);
184 size_t Digits = consumeNumHexDigits(Style, HS, sizeof(void *) * 2);
185 write_hex(Stream, reinterpret_cast<std::uintptr_t>(V), HS, Digits);
/third_party/typescript/tests/cases/conformance/types/literal/
DtemplateLiteralTypes1.ts202 type Digits = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; alias
204 type D100000 = `${Digits}${Digits}${Digits}${Digits}${Digits}`; // Error

123