NewTOAPIA.Net.Rtp.GF16.Power C# (CSharp) Method

Power() public static method

public static Power ( UInt16 x, UInt32 exponent ) : UInt16
x System.UInt16
exponent System.UInt32
return System.UInt16
        public static UInt16 Power(UInt16 x, UInt32 exponent)
        {
            if ( x == 0 ) return 0;
            if ( exponent == 0 ) return 1;
        
            UInt16 ret = x;
            for (int i = 1; i < exponent; i++)
                ret = Multiply(ret, x);

            return ret;
        }
    }

Same methods

GF16::Power ( int exponent ) : GF16