OLD | NEW |
1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
2 | 2 |
3 #ifndef VM_BIGINT_OPERATIONS_H_ | 3 #ifndef VM_BIGINT_OPERATIONS_H_ |
4 #define VM_BIGINT_OPERATIONS_H_ | 4 #define VM_BIGINT_OPERATIONS_H_ |
5 | 5 |
6 #include "platform/utils.h" | 6 #include "platform/utils.h" |
7 | 7 |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 static void DivideRemainder(const Bigint& a, const Bigint& b, | 141 static void DivideRemainder(const Bigint& a, const Bigint& b, |
142 Bigint* quotient, Bigint* remainder); | 142 Bigint* quotient, Bigint* remainder); |
143 static Chunk InplaceUnsignedDivideRemainderDigit( | 143 static Chunk InplaceUnsignedDivideRemainderDigit( |
144 const Bigint& dividend_quotient, Chunk divisor_digit); | 144 const Bigint& dividend_quotient, Chunk divisor_digit); |
145 | 145 |
146 // Removes leading zero-chunks by adjusting the bigint's length. | 146 // Removes leading zero-chunks by adjusting the bigint's length. |
147 static void Clamp(const Bigint& bigint); | 147 static void Clamp(const Bigint& bigint); |
148 | 148 |
149 static RawBigint* Copy(const Bigint& bigint); | 149 static RawBigint* Copy(const Bigint& bigint); |
150 | 150 |
151 static int CountBits(Chunk digit); | 151 static intptr_t CountBits(Chunk digit); |
152 | 152 |
153 DISALLOW_IMPLICIT_CONSTRUCTORS(BigintOperations); | 153 DISALLOW_IMPLICIT_CONSTRUCTORS(BigintOperations); |
154 }; | 154 }; |
155 | 155 |
156 } // namespace dart | 156 } // namespace dart |
157 | 157 |
158 #endif // VM_BIGINT_OPERATIONS_H_ | 158 #endif // VM_BIGINT_OPERATIONS_H_ |
OLD | NEW |