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

Unified Diff: pkg/fixnum/lib/src/int64.dart

Issue 11405003: Update fixnum to new package guidelines. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move fixnum parts into src. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/fixnum/lib/src/int32.dart ('k') | pkg/fixnum/lib/src/intx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fixnum/lib/src/int64.dart
diff --git a/pkg/fixnum/int64.dart b/pkg/fixnum/lib/src/int64.dart
similarity index 99%
rename from pkg/fixnum/int64.dart
rename to pkg/fixnum/lib/src/int64.dart
index 47ade3674b1e290f1b852a098a8b8c5645b8e9fb..cefb2c012a59e0b853324376746cf697917d9d83 100644
--- a/pkg/fixnum/int64.dart
+++ b/pkg/fixnum/lib/src/int64.dart
@@ -189,7 +189,7 @@ class int64 implements intx {
}
factory int64.fromBytes(List<int> bytes) {
- int top = bytes[7] & 0xff;
+ int top = bytes[7] & 0xff;
top <<= 8;
top |= bytes[6] & 0xff;
top <<= 8;
@@ -197,7 +197,7 @@ class int64 implements intx {
top <<= 8;
top |= bytes[4] & 0xff;
- int bottom = bytes[3] & 0xff;
+ int bottom = bytes[3] & 0xff;
bottom <<= 8;
bottom |= bytes[2] & 0xff;
bottom <<= 8;
@@ -209,7 +209,7 @@ class int64 implements intx {
}
factory int64.fromBytesBigEndian(List<int> bytes) {
- int top = bytes[0] & 0xff;
+ int top = bytes[0] & 0xff;
top <<= 8;
top |= bytes[1] & 0xff;
top <<= 8;
@@ -217,7 +217,7 @@ class int64 implements intx {
top <<= 8;
top |= bytes[3] & 0xff;
- int bottom = bytes[4] & 0xff;
+ int bottom = bytes[4] & 0xff;
bottom <<= 8;
bottom |= bytes[5] & 0xff;
bottom <<= 8;
@@ -458,7 +458,7 @@ class int64 implements intx {
if (negative) {
a2 += 0x3 << _BITS2; // add extra one bits on the left
}
-
+
if (n < _BITS) {
res2 = _shiftRight(a2, n);
if (negative) {
« no previous file with comments | « pkg/fixnum/lib/src/int32.dart ('k') | pkg/fixnum/lib/src/intx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698