From 52d6bc8533616dd642c96f8b6e72f459e1b4d465 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Mon, 17 Jul 2023 23:00:30 -0500 Subject: Standard lib rework --- std/stdmath.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'std/stdmath.c') diff --git a/std/stdmath.c b/std/stdmath.c index a650129..56e140c 100644 --- a/std/stdmath.c +++ b/std/stdmath.c @@ -1,6 +1,8 @@ #include #include #include +//#include +//float fmodf(float x, float y); int random_setup = 0; @@ -11,3 +13,7 @@ int randGen(int min, int max) { } return random() % (max - min + 1) + min; } + +//int slothfloor(float x) { +// return (int) (x - fabs(fmodf(x, (float) 1))); +//} -- cgit v1.2.3