summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:55 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:55 +0000
commitb0fab2696a5b13c6b87a69bb1c24bf2490e44ff2 (patch)
tree5b965ff57676617130f42fd6335b6662b502a1b0
parente3802356e2933e2c543165890d8420959bc507e4 (diff)
downloadbcm5719-llvm-b0fab2696a5b13c6b87a69bb1c24bf2490e44ff2.tar.gz
bcm5719-llvm-b0fab2696a5b13c6b87a69bb1c24bf2490e44ff2.zip
sqrt: Use unary_decl instead of custom inc file
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By: Aaron Watry <awatry@gmail.com> llvm-svn: 317257
-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