summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:28 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:28 +0000
commite438b58cd00e5598f8a1eb08e036d63f28317899 (patch)
tree28eb3ffbbdc19db0156e28b661d1e297878c9d38 /libclc/generic/include
parent81bc9ee81c9a7781cf0e42d0b011e7acb34c77e0 (diff)
downloadbcm5719-llvm-e438b58cd00e5598f8a1eb08e036d63f28317899.tar.gz
bcm5719-llvm-e438b58cd00e5598f8a1eb08e036d63f28317899.zip
copysign: Use binary_decl_tt.inc instead of custom inc file.
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356025
Diffstat (limited to 'libclc/generic/include')
-rw-r--r--libclc/generic/include/clc/math/copysign.h7
-rw-r--r--libclc/generic/include/clc/math/copysign.inc1
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/copysign.h b/libclc/generic/include/clc/math/copysign.h
index 8f0742e451f..0b9fd53d870 100644
--- a/libclc/generic/include/clc/math/copysign.h
+++ b/libclc/generic/include/clc/math/copysign.h
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/copysign.inc>
+#define __CLC_FUNCTION copysign
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+
#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/copysign.inc b/libclc/generic/include/clc/math/copysign.inc
deleted file mode 100644
index 6091abcc1fc..00000000000
--- a/libclc/generic/include/clc/math/copysign.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE copysign(__CLC_GENTYPE a, __CLC_GENTYPE b);
OpenPOWER on IntegriCloud