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

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

Issue 834323002: 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, 11 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 | « runtime/lib/integers.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 42820)
+++ sdk/lib/core/int.dart (working copy)
@@ -103,6 +103,9 @@
*/
int operator >>(int shiftAmount);
+ /** Returns this integer to the power of [exponent] modulo [modulus]. */
+ int modPow(int exponent, int modulus);
+
/** Returns true if and only if this integer is even. */
bool get isEven;
« no previous file with comments | « runtime/lib/integers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698