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

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

Issue 88983004: Support Bigint parameters in Int32x4 constructor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 static bool FitsIntoSmi(const Bigint& bigint); 62 static bool FitsIntoSmi(const Bigint& bigint);
63 static RawSmi* ToSmi(const Bigint& bigint); 63 static RawSmi* ToSmi(const Bigint& bigint);
64 64
65 static bool FitsIntoInt64(const Bigint& bigint); 65 static bool FitsIntoInt64(const Bigint& bigint);
66 static int64_t ToInt64(const Bigint& bigint); 66 static int64_t ToInt64(const Bigint& bigint);
67 67
68 static bool FitsIntoUint64(const Bigint& bigint); 68 static bool FitsIntoUint64(const Bigint& bigint);
69 static bool AbsFitsIntoUint64(const Bigint& bigint); 69 static bool AbsFitsIntoUint64(const Bigint& bigint);
70 static uint64_t ToUint64(const Bigint& bigint); 70 static uint64_t ToUint64(const Bigint& bigint);
71 static uint32_t TruncateToUint32(const Bigint& bigint);
71 static uint64_t AbsToUint64(const Bigint& bigint); 72 static uint64_t AbsToUint64(const Bigint& bigint);
72 73
73 static RawDouble* ToDouble(const Bigint& bigint); 74 static RawDouble* ToDouble(const Bigint& bigint);
74 75
75 static RawBigint* Add(const Bigint& a, const Bigint& b) { 76 static RawBigint* Add(const Bigint& a, const Bigint& b) {
76 bool negate_b = false; 77 bool negate_b = false;
77 return AddSubtract(a, b, negate_b); 78 return AddSubtract(a, b, negate_b);
78 } 79 }
79 static RawBigint* Subtract(const Bigint& a, const Bigint& b) { 80 static RawBigint* Subtract(const Bigint& a, const Bigint& b) {
80 bool negate_b = true; 81 bool negate_b = true;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static RawBigint* Copy(const Bigint& bigint); 150 static RawBigint* Copy(const Bigint& bigint);
150 151
151 static intptr_t CountBits(Chunk digit); 152 static intptr_t CountBits(Chunk digit);
152 153
153 DISALLOW_IMPLICIT_CONSTRUCTORS(BigintOperations); 154 DISALLOW_IMPLICIT_CONSTRUCTORS(BigintOperations);
154 }; 155 };
155 156
156 } // namespace dart 157 } // namespace dart
157 158
158 #endif // VM_BIGINT_OPERATIONS_H_ 159 #endif // VM_BIGINT_OPERATIONS_H_
OLDNEW
« no previous file with comments | « runtime/lib/simd128.cc ('k') | runtime/vm/bigint_operations.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698