For powers of two all you have to do is use the shifter, which is very
fast and is probably almost constants for the usual powers of 2.
For ordinary numbers, its probably the O(exp), where exp is the
exponent. For example, base^exp, to calculate that it would probably take exp times to multiply base to get the answer.
The above is not definite, its just a hunch.
Reputation Points: 840
Solved Threads: 594
Senior Poster
Offline 3,859 posts
since Dec 2008