Advertisement
ijontichy

<stdin>

May 6th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function int pow(int x, int y)
  2. {
  3. int n = 1;
  4. while (y-- > 0) { n *= x; }
  5. return n;
  6. }
  7.  
  8. function int powFloat(int x, int y)
  9. {
  10. int n = 1.0;
  11. while (y-- > 0) { n = FixedMul(n, x); }
  12. return n;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement