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

Unified Diff: sdk/lib/core/int.dart

Issue 896393004: Add modPow(int exponent, int modulus) method to int abstract class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_number.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/int.dart
===================================================================
--- sdk/lib/core/int.dart (revision 43571)
+++ sdk/lib/core/int.dart (working copy)
@@ -103,6 +103,14 @@
*/
int operator >>(int shiftAmount);
+ /**
+ * Returns this integer to the power of [exponent] modulo [modulus].
+ *
+ * The [exponent] must be non-negative and [modulus] must be
+ * positive.
+ */
+ int modPow(int exponent, int modulus);
+
/** Returns true if and only if this integer is even. */
bool get isEven;
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_number.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698