diff options
author | Tom Smeding <tom@tomsmeding.com> | 2021-09-25 21:45:43 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2021-09-25 21:46:10 +0200 |
commit | 57e5bbbbab0d5315c6bba497447ff9bf2487e995 (patch) | |
tree | e505ed9ff97f8822824c5b8d1d7615f5c86f1d65 /prelude.c | |
parent | 070772f008bcb5edb63f3f2c2c5f10c4eb9cb008 (diff) |
Lots of stuff; can compile simple single-generate program
Diffstat (limited to 'prelude.c')
-rw-r--r-- | prelude.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; -} +}*/ |