aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/include
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-05-29 00:18:38 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-05-29 00:18:38 +0200
commit371ff944e3377b263506f57c71b54ea24d1f75a7 (patch)
tree0741239c1c8843ddfb6c92ecdd1500456b92aa4b /runtime/include
parent436658966209181c8f365cc8d1a69e8487852d17 (diff)
downloadcompcert-kvx-371ff944e3377b263506f57c71b54ea24d1f75a7.tar.gz
compcert-kvx-371ff944e3377b263506f57c71b54ea24d1f75a7.zip
more builtins
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)