summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/integer
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-26 18:21:06 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-26 18:21:06 +0000
commitcb133c932262acc2e98fd42e7873dc4e317e1094 (patch)
treec32c43fd6b07abae745e21e98e9cece4564a586f /libclc/generic/lib/integer
parentfe23a30ef5febddf512d669e89e08f35a14872ee (diff)
downloadbcm5719-llvm-cb133c932262acc2e98fd42e7873dc4e317e1094.tar.gz
bcm5719-llvm-cb133c932262acc2e98fd42e7873dc4e317e1094.zip
libclc: Move max builtin to shared/
Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry llvm-svn: 184995
Diffstat (limited to 'libclc/generic/lib/integer')
-rw-r--r--libclc/generic/lib/integer/max.cl4
-rw-r--r--libclc/generic/lib/integer/max.inc3
2 files changed, 0 insertions, 7 deletions
diff --git a/libclc/generic/lib/integer/max.cl b/libclc/generic/lib/integer/max.cl
deleted file mode 100644
index 89fec7c53d3..00000000000
--- a/libclc/generic/lib/integer/max.cl
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <clc/clc.h>
-
-#define BODY <max.inc>
-#include <clc/integer/gentype.inc>
diff --git a/libclc/generic/lib/integer/max.inc b/libclc/generic/lib/integer/max.inc
deleted file mode 100644
index 37409fc8a24..00000000000
--- a/libclc/generic/lib/integer/max.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-_CLC_OVERLOAD _CLC_DEF GENTYPE max(GENTYPE a, GENTYPE b) {
- return (a > b ? a : b);
-}
OpenPOWER on IntegriCloud