From 1ad6bbe4b3baee113bf6f37e0d02030910543fbd Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 21 Dec 2023 06:40:40 +0100 Subject: add maths library and print_dbl --- stage3/shell.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'stage3/shell.c') 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' }; -- cgit v1.2.3