From 57e5bbbbab0d5315c6bba497447ff9bf2487e995 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 25 Sep 2021 21:45:43 +0200 Subject: Lots of stuff; can compile simple single-generate program --- prelude.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'prelude.c') diff --git a/prelude.c b/prelude.c index bb345c4..22d01c0 100644 --- a/prelude.c +++ b/prelude.c @@ -1,4 +1,7 @@ -int builtin_divInt(int x, int y) { +#include +#include + +/*int builtin_divInt(int x, int y) { return (x > 0 && y < 0) ? (x - 1) / y - 1 : (x < 0 && y > 0) ? (x + 1) / y - 1 @@ -10,4 +13,4 @@ int builtin_modInt(int x, int y) { (x > 0 && y < 0) ? (x - 1) % y + y + 1 : (x < 0 && y > 0) ? (x + 1) % y + y - 1 : x % y; -} +}*/ -- cgit v1.2.3-70-g09d2