summaryrefslogtreecommitdiff
path: root/includes/stg
diff options
context:
space:
mode:
Diffstat (limited to 'includes/stg')
-rw-r--r--includes/stg/Prim.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/stg/Prim.h b/includes/stg/Prim.h
index 9fdfd3ceaa..48bbddb09c 100644
--- a/includes/stg/Prim.h
+++ b/includes/stg/Prim.h
@@ -32,4 +32,16 @@ StgWord hs_popcnt(StgWord x);
StgFloat hs_word2float32(StgWord x);
StgDouble hs_word2float64(StgWord x);
+/* libraries/ghc-prim/cbits/clz.c */
+StgWord hs_clz8(StgWord x);
+StgWord hs_clz16(StgWord x);
+StgWord hs_clz32(StgWord x);
+StgWord hs_clz64(StgWord64 x);
+
+/* libraries/ghc-prim/cbits/ctz.c */
+StgWord hs_ctz8(StgWord x);
+StgWord hs_ctz16(StgWord x);
+StgWord hs_ctz32(StgWord x);
+StgWord hs_ctz64(StgWord64 x);
+
#endif /* PRIM_H */