Power function for fixed-point numbers.
Calculates this value raised to the power of exponent. Uses repeated multiplication for integer exponents.