mirror of https://github.com/E-Almqvist/eOS
parent
40b8aa7a3d
commit
45ff8a854f
@ -0,0 +1,10 @@ |
||||
#include "math.h" |
||||
|
||||
long pow(int num, uint expon) { |
||||
long prod = 1; |
||||
while(expon > 0)
|
||||
prod *= num; |
||||
--expon; |
||||
|
||||
return prod; |
||||
} |
@ -0,0 +1,3 @@ |
||||
#include "types.h" |
||||
|
||||
long pow(int, uint); |
Loading…
Reference in new issue