Index: sdk/lib/core/int.dart |
diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart |
index 5aee609939f14f46497c169812cd6ef6065dcc08..58d80b84607f5eec6965c1030ef417f6f4cc6cd5 100644 |
--- a/sdk/lib/core/int.dart |
+++ b/sdk/lib/core/int.dart |
@@ -120,6 +120,14 @@ abstract class int extends num { |
*/ |
int modInverse(int modulus); |
+ /** |
+ * Returns the greatest common divisor of the absolute value of |
+ * this integer and the absolute value of [other]. |
+ * |
+ * Both this and [other] must be non-zero. |
+ */ |
+ int gcd(int other); |
+ |
/** Returns true if and only if this integer is even. */ |
bool get isEven; |