| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 import "dart:math" show pow; | 7 import "dart:math" show pow; |
| 8 | 8 |
| 9 var smallNumber = 1234567890; // is 31-bit integer. | 9 var smallNumber = 1234567890; // is 31-bit integer. |
| 10 var mediumNumber = 1234567890123456; // is 53-bit integer | 10 var mediumNumber = 1234567890123456; // is 53-bit integer |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 test((pow(2, 52) - 1) * pow(2, 14), (pow(2, 26) - 1) * pow(2, 22), | 189 test((pow(2, 52) - 1) * pow(2, 14), (pow(2, 26) - 1) * pow(2, 22), |
| 190 (pow(2, 26) - 1) * pow(2, 14)); | 190 (pow(2, 26) - 1) * pow(2, 14)); |
| 191 } | 191 } |
| 192 | 192 |
| 193 main() { | 193 main() { |
| 194 testModPow(); // //# modPow: ok | 194 testModPow(); // //# modPow: ok |
| 195 testModInverse(); | 195 testModInverse(); |
| 196 testGcd(); | 196 testGcd(); |
| 197 } | 197 } |
| OLD | NEW |