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

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

Issue 10836006: Rename MathNatives_2atan to MathNatives_atan2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/lib/math.cc ('k') | runtime/vm/bootstrap_natives.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class MathNatives { 5 class MathNatives {
6 static num pow(num value, num exponent) { 6 static num pow(num value, num exponent) {
7 if (exponent is int) { 7 if (exponent is int) {
8 return value.pow(exponent); 8 return value.pow(exponent);
9 } 9 }
10 // Double.pow will call exponent.toDouble(). 10 // Double.pow will call exponent.toDouble().
(...skipping 14 matching lines...) Expand all
25 static double parseDouble(String str) => _parseDouble(str); 25 static double parseDouble(String str) => _parseDouble(str);
26 26
27 static double _random() native "MathNatives_random"; 27 static double _random() native "MathNatives_random";
28 static double _sqrt(double value) native "MathNatives_sqrt"; 28 static double _sqrt(double value) native "MathNatives_sqrt";
29 static double _sin(double value) native "MathNatives_sin"; 29 static double _sin(double value) native "MathNatives_sin";
30 static double _cos(double value) native "MathNatives_cos"; 30 static double _cos(double value) native "MathNatives_cos";
31 static double _tan(double value) native "MathNatives_tan"; 31 static double _tan(double value) native "MathNatives_tan";
32 static double _acos(double value) native "MathNatives_acos"; 32 static double _acos(double value) native "MathNatives_acos";
33 static double _asin(double value) native "MathNatives_asin"; 33 static double _asin(double value) native "MathNatives_asin";
34 static double _atan(double value) native "MathNatives_atan"; 34 static double _atan(double value) native "MathNatives_atan";
35 static double _atan2(double a, double b) native "MathNatives_2atan"; 35 static double _atan2(double a, double b) native "MathNatives_atan2";
36 static double _exp(double value) native "MathNatives_exp"; 36 static double _exp(double value) native "MathNatives_exp";
37 static double _log(double value) native "MathNatives_log"; 37 static double _log(double value) native "MathNatives_log";
38 static int _parseInt(String str) native "MathNatives_parseInt"; 38 static int _parseInt(String str) native "MathNatives_parseInt";
39 static double _parseDouble(String str) native "MathNatives_parseDouble"; 39 static double _parseDouble(String str) native "MathNatives_parseDouble";
40 } 40 }
OLDNEW
« no previous file with comments | « runtime/lib/math.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698