Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function int pow(int x, int y)
- {
- int n = 1;
- while (y-- > 0) { n *= x; }
- return n;
- }
- function int powFloat(int x, int y)
- {
- int n = 1.0;
- while (y-- > 0) { n = FixedMul(n, x); }
- return n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement