diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-21 12:23:54 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-21 12:23:54 +0200 |
| commit | d9443c7fdf756212bb52ffc934b1166038bc2ad3 (patch) | |
| tree | cf31082457e159a7de9a5bb04f15edc598afddf5 /src/libc/math.c | |
| parent | ca1e725b0dc9b10997897dd2ac6d44028601d9bb (diff) | |
Refactoring
Diffstat (limited to 'src/libc/math.c')
| -rw-r--r-- | src/libc/math.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/libc/math.c b/src/libc/math.c deleted file mode 100644 index 80b1d3a..0000000 --- a/src/libc/math.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "math.h" - -int pow(int x,int n){ - if(n<0) - return -1; - else if(n==0) - return 1; - else if(n==1) - return x; - int ret=x; - for(int i=0;i<(n-1);i++) - ret*=x; - return ret; -} - -int max(int x,int y){ - if(x>y) - return x; - return y; -} - -int min(int x,int y){ - if(x<y) - return x; - return y; -} - -int abs(int x){ - if(x<0) - return -x; - return x; -}
\ No newline at end of file |
