summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/integer/popcount.h
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/include/clc/integer/popcount.h')
-rw-r--r--libclc/generic/include/clc/integer/popcount.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/libclc/generic/include/clc/integer/popcount.h b/libclc/generic/include/clc/integer/popcount.h
index 99e402171de..23335f45b6f 100644
--- a/libclc/generic/include/clc/integer/popcount.h
+++ b/libclc/generic/include/clc/integer/popcount.h
@@ -1,6 +1,5 @@
-#undef popcount
-#define popcount __clc_popcount
-
-#define __CLC_FUNCTION __clc_popcount
-#define __CLC_INTRINSIC "llvm.ctpop"
-#include <clc/integer/unary_intrin.inc>
+#define __CLC_FUNCTION popcount
+#define __CLC_BODY <clc/integer/unary.inc>
+#include <clc/integer/gentype.inc>
+#undef __CLC_FUNCTION
+#undef __CLC_BODY
OpenPOWER on IntegriCloud