diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-21 06:40:40 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-21 06:40:40 +0100 |
commit | 1ad6bbe4b3baee113bf6f37e0d02030910543fbd (patch) | |
tree | 52c419e11d50d1940911dba73b8c39eb8617724f /stage3/shell.c | |
parent | 5885cb0a19b06388222f2945d78963377e584ecc (diff) | |
download | cuddles-1ad6bbe4b3baee113bf6f37e0d02030910543fbd.tar.xz |
add maths library and print_dbl
Diffstat (limited to 'stage3/shell.c')
-rw-r--r-- | stage3/shell.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/stage3/shell.c b/stage3/shell.c index 0f56a04..055c296 100644 --- a/stage3/shell.c +++ b/stage3/shell.c @@ -7,6 +7,7 @@ #include "pci.h" #include "memory.h" #include "io.h" +#include "math.h" static void cmd_echo(str arg) { @@ -177,14 +178,6 @@ static void cmd_uname(str arg) print(S("\n")); } -static u64 ipow(u64 b, u64 exp) -{ - u64 x = 1; - for (u64 i = 0; i < exp; i++) - x *= b; - return x; -} - static void print_bytes(usize bytes) { static char fmt[] = { ' ', 'K', 'M', 'G', 'T' }; |