mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
* 调整user下libs的libc目录结构 * 修正.gitignore文件的问题 * 修复无法编译的问题 Co-authored-by: longjin <longjin@RinGoTek.cn>
10 lines
177 B
C
10 lines
177 B
C
#include <libc/src/math.h>
|
|
#include <libc/src/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;
|
|
} |