12 lines
175 B
C
12 lines
175 B
C
#include <lcrash/math.h>
|
|
|
|
s64 RaiseInteger(s64 Base, u64 Exponent) {
|
|
s64 Ret = 1;
|
|
|
|
if (Exponent >= 0) {
|
|
for (int i = 0; i < Exponent; i++) Ret *= Base;
|
|
}
|
|
|
|
return Ret;
|
|
}
|