summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libclc/generic/include/clc/math/sqrt.h6
-rw-r--r--libclc/generic/include/clc/math/sqrt.inc1
2 files changed, 5 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/sqrt.h b/libclc/generic/include/clc/math/sqrt.h
index ccde9748adb..edd3eb13933 100644
--- a/libclc/generic/include/clc/math/sqrt.h
+++ b/libclc/generic/include/clc/math/sqrt.h
@@ -1,3 +1,7 @@
-#define __CLC_BODY <clc/math/sqrt.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION sqrt
+
#include <clc/math/gentype.inc>
+
#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/sqrt.inc b/libclc/generic/include/clc/math/sqrt.inc
deleted file mode 100644
index f629fac761b..00000000000
--- a/libclc/generic/include/clc/math/sqrt.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sqrt(__CLC_GENTYPE a);
OpenPOWER on IntegriCloud