I believe it may only work with constants or powers of two (for variable exponents 2**N, i.e. a shift operation).
There is also a fixed point library that exists (mentioned here) that may have a exponentiation function, but I'm not sure as I haven't looked through the files. **broken link removed**