summaryrefslogtreecommitdiff
path: root/prelude.c
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-09-25 21:45:43 +0200
committerTom Smeding <tom@tomsmeding.com>2021-09-25 21:46:10 +0200
commit57e5bbbbab0d5315c6bba497447ff9bf2487e995 (patch)
treee505ed9ff97f8822824c5b8d1d7615f5c86f1d65 /prelude.c
parent070772f008bcb5edb63f3f2c2c5f10c4eb9cb008 (diff)
Lots of stuff; can compile simple single-generate program
Diffstat (limited to 'prelude.c')
-rw-r--r--prelude.c7
1 files changed, 5 insertions, 2 deletions
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 <stdlib.h>
+#include <stdint.h>
+
+/*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;
-}
+}*/