From 05498860e8f7b1e8bb27880bc7526de026694804 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 Mar 2021 21:55:50 +0100 Subject: Renamed libs Cleaner and more flexible. --- libc/math.c | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 libc/math.c (limited to 'libc/math.c') diff --git a/libc/math.c b/libc/math.c deleted file mode 100644 index c8142b5..0000000 --- a/libc/math.c +++ /dev/null @@ -1,17 +0,0 @@ -// MIT License, Copyright (c) 2020 Marvin Borner - -#include - -int pow(int base, int exp) -{ - if (exp < 0) - return 0; - - if (!exp) - return 1; - - int ret = base; - for (int i = 1; i < exp; i++) - ret *= base; - return ret; -} -- cgit v1.2.3