diff maths/MathUtilities.h @ 125:5351b5e9ad9f

Add gcd
author Chris Cannam
date Tue, 08 Oct 2013 17:23:17 +0100
parents a37635bbb2c1
children 0fdbb93e92b7
line wrap: on
line diff
--- a/maths/MathUtilities.h	Fri Oct 04 18:46:32 2013 +0100
+++ b/maths/MathUtilities.h	Tue Oct 08 17:23:17 2013 +0100
@@ -66,6 +66,8 @@
     static int nearestPowerOfTwo(int x); // e.g. 1300 -> 1024, 12 -> 16 (not 8)
 
     static int factorial(int x);
+
+    static int gcd(int a, int b);
 };
 
 #endif