/** * Returns x to the <code>exponent</code> power. * * @param x an integer * @param exponent an integer * @return x to the <code>exponent</code> power. */ public int pow(int x, int exponent) { return ModMath.pow(x, exponent, p); }