mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
10 lines
173 B
C
10 lines
173 B
C
#include <common/math.h>
|
|
#include <common/stddef.h>
|
|
|
|
int64_t pow(int64_t x, int y)
|
|
{
|
|
int64_t res = 1;
|
|
for (int i = 0; i < y; ++i)
|
|
res *= x;
|
|
return res;
|
|
} |