Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: runtime/vm/bigint_operations.h

Issue 26294002: Cleanups: int -> intptr_t for "array" lengths, memory sizes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/bigint_operations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/bigint_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698