summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/common/sign.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-10 19:08:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-10-10 19:08:56 +0000
commit436bf70519b27589bcc0069b184e5f13b455d1da (patch)
tree7e38cc24e3190daffa8fac3d9df495dc56719d20 /libclc/generic/include/clc/common/sign.h
parent6c7b86c1061994c07c9a0dc608f979b3a10fa9da (diff)
downloadbcm5719-llvm-436bf70519b27589bcc0069b184e5f13b455d1da.tar.gz
bcm5719-llvm-436bf70519b27589bcc0069b184e5f13b455d1da.zip
Implement sign() builtin
llvm-svn: 192384
Diffstat (limited to 'libclc/generic/include/clc/common/sign.h')
-rw-r--r--libclc/generic/include/clc/common/sign.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/common/sign.h b/libclc/generic/include/clc/common/sign.h
new file mode 100644
index 00000000000..fa9aa096541
--- /dev/null
+++ b/libclc/generic/include/clc/common/sign.h
@@ -0,0 +1,5 @@
+#define __CLC_FUNCTION sign
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#include <clc/math/gentype.inc>
+#undef __CLC_FUNCTION
+#undef __CLC_BODY
OpenPOWER on IntegriCloud