summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2015-03-18 21:52:07 +0000
committerAaron Watry <awatry@gmail.com>2015-03-18 21:52:07 +0000
commit2cf4d5f31204c873d76953bfe3c8b5602b29e789 (patch)
tree2f0815fdcd79e0b78b95c6726c757fc9bfe934fd /libclc/generic/include/clc
parent5023257f2359d16357721635a22db8ecd7213343 (diff)
downloadbcm5719-llvm-2cf4d5f31204c873d76953bfe3c8b5602b29e789.tar.gz
bcm5719-llvm-2cf4d5f31204c873d76953bfe3c8b5602b29e789.zip
math: Implement erfc
Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 232674
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/clc.h1
-rw-r--r--libclc/generic/include/clc/math/erfc.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h
index ae611a51684..1c12cf3f166 100644
--- a/libclc/generic/include/clc/clc.h
+++ b/libclc/generic/include/clc/clc.h
@@ -40,6 +40,7 @@
#include <clc/math/cos.h>
#include <clc/math/cospi.h>
#include <clc/math/ceil.h>
+#include <clc/math/erfc.h>
#include <clc/math/exp.h>
#include <clc/math/exp10.h>
#include <clc/math/exp2.h>
diff --git a/libclc/generic/include/clc/math/erfc.h b/libclc/generic/include/clc/math/erfc.h
new file mode 100644
index 00000000000..b365a107988
--- /dev/null
+++ b/libclc/generic/include/clc/math/erfc.h
@@ -0,0 +1,9 @@
+#undef erfc
+
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION erfc
+
+#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud