aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/include
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/include')
-rw-r--r--runtime/include/ccomp_k1c_fixes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/include/ccomp_k1c_fixes.h b/runtime/include/ccomp_k1c_fixes.h
index 1404b5fc..5c543d8f 100644
--- a/runtime/include/ccomp_k1c_fixes.h
+++ b/runtime/include/ccomp_k1c_fixes.h
@@ -20,3 +20,5 @@ extern __int128 __compcert_acswapw(void *address, unsigned long long new_value,
#endif
#define __builtin_expect(x, y) (x)
+#define __builtin_ctz(x) __builtin_k1_ctzw(x)
+#define __builtin_clz(x) __builtin_k1_clzw(x)