summaryrefslogtreecommitdiff
path: root/generic/include/clc
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-08-05 22:25:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-08-05 22:25:12 +0000
commit3b230ffdb7c8c312e327d18f23e3d91ec8ae0511 (patch)
tree239f2ecb4a64917ca6ffa817702fe35119ad6107 /generic/include/clc
parent05edc47f68b94fb1fc6a6e6f2a5baabb2abd9b59 (diff)
Implement sub_sat builtin. Patch by Lei Mou!
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@161312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include/clc')
-rw-r--r--generic/include/clc/clc.h1
-rw-r--r--generic/include/clc/integer/sub_sat.h2
-rw-r--r--generic/include/clc/integer/sub_sat.inc1
3 files changed, 4 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index b0cbd4a..8b41523 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -57,6 +57,7 @@
#include <clc/integer/abs.h>
#include <clc/integer/abs_diff.h>
#include <clc/integer/add_sat.h>
+#include <clc/integer/sub_sat.h>
/* 6.11.5 Geometric Functions */
#include <clc/geometric/cross.h>
diff --git a/generic/include/clc/integer/sub_sat.h b/generic/include/clc/integer/sub_sat.h
new file mode 100644
index 0000000..942274d
--- /dev/null
+++ b/generic/include/clc/integer/sub_sat.h
@@ -0,0 +1,2 @@
+#define BODY <clc/integer/sub_sat.inc>
+#include <clc/integer/gentype.inc>
diff --git a/generic/include/clc/integer/sub_sat.inc b/generic/include/clc/integer/sub_sat.inc
new file mode 100644
index 0000000..3e0f8f9
--- /dev/null
+++ b/generic/include/clc/integer/sub_sat.inc
@@ -0,0 +1 @@
+_CLC_OVERLOAD _CLC_DECL GENTYPE sub_sat(GENTYPE x, GENTYPE y);