FileDocCategorySizeDatePackage
Math.javaAPI Docmp4parser 1.0-RC-17619Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.util

Math

public class Math extends Object

Fields Summary
Constructors Summary
Methods Summary
public static longgcd(long a, long b)

        while (b > 0) {
            long temp = b;
            b = a % b; // % is remainder
            a = temp;
        }
        return a;
    
public static intgcd(int a, int b)

        while (b > 0) {
            int temp = b;
            b = a % b; // % is remainder
            a = temp;
        }
        return a;
    
public static longlcm(long a, long b)

        return a * (b / gcd(a, b));
    
public static intlcm(int a, int b)

        return a * (b / gcd(a, b));