Aspectacular.MathExtensions.Pow C# (CSharp) Method

Pow() public static method

Fast calculation of x power of n for integers.
public static Pow ( this x, byte power ) : long
x this
power byte
return long
        public static long Pow(this int x, byte power)
        {
            long result = 1, ipower = power;
            ipower.Repeat(_ => result *= x);
            return result;
        }
MathExtensions