~ chicken-core (chicken-5) ee2d3fa425dab5350fdae92009fea85608aac1a3
commit ee2d3fa425dab5350fdae92009fea85608aac1a3
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Sun Sep 5 11:47:14 2021 +0200
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sun Sep 5 13:08:43 2021 +0200
Tcc defines __GNUC__ but doesn't have __builtin_clzll
Signed-off-by: Mario Domenech Goulart <mario@parenteses.org>
diff --git a/runtime.c b/runtime.c
index 93dd9d29..c46cde6f 100644
--- a/runtime.c
+++ b/runtime.c
@@ -13343,7 +13343,7 @@ static inline C_u64 random64() {
#endif
}
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__TINYC__)
# define clz64 __builtin_clzll
#else
/* https://en.wikipedia.org/wiki/Find_first_set#CLZ */
Trap