调整user下libs的libc目录结构 (#103)

* 调整user下libs的libc目录结构

* 修正.gitignore文件的问题

* 修复无法编译的问题

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
wwc-15172310230
2022-12-11 22:22:10 +08:00
committed by GitHub
parent 2291ffdece
commit 237e95c6dd
57 changed files with 229 additions and 124 deletions

View File

@ -0,0 +1,10 @@
#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;
}