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

Side by Side Diff: runtime/lib/bigint.dart

Issue 2705593002: Fix various nits in VM patch files. (Closed)
Patch Set: Address comments and issues found during testing. Created 3 years, 10 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
« no previous file with comments | « runtime/lib/async_patch.dart ('k') | runtime/lib/compact_hash.dart » ('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 (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:typed_data' show Uint32List;
6
5 // Copyright 2009 The Go Authors. All rights reserved. 7 // Copyright 2009 The Go Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style 8 // Use of this source code is governed by a BSD-style
7 // license that can be found in the LICENSE file. 9 // license that can be found in the LICENSE file.
8 10
9 /* 11 /*
10 * Copyright (c) 2003-2005 Tom Wu 12 * Copyright (c) 2003-2005 Tom Wu
11 * Copyright (c) 2012 Adam Singer (adam@solvr.io) 13 * Copyright (c) 2012 Adam Singer (adam@solvr.io)
12 * All Rights Reserved. 14 * All Rights Reserved.
13 * 15 *
14 * Permission is hereby granted, free of charge, to any person obtaining 16 * Permission is hereby granted, free of charge, to any person obtaining
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 2084
2083 int _mul(Uint32List x_digits, int x_used, 2085 int _mul(Uint32List x_digits, int x_used,
2084 Uint32List y_digits, int y_used, 2086 Uint32List y_digits, int y_used,
2085 Uint32List r_digits) { 2087 Uint32List r_digits) {
2086 var r_used = _Bigint._mulDigits(x_digits, x_used, 2088 var r_used = _Bigint._mulDigits(x_digits, x_used,
2087 y_digits, y_used, 2089 y_digits, y_used,
2088 r_digits); 2090 r_digits);
2089 return _reduce(r_digits, r_used); 2091 return _reduce(r_digits, r_used);
2090 } 2092 }
2091 } 2093 }
OLDNEW
« no previous file with comments | « runtime/lib/async_patch.dart ('k') | runtime/lib/compact_hash.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698