summaryrefslogtreecommitdiff
path: root/generic/include
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
commit15ba684e4eb0d73bc208766869161f0af1f120ee (patch)
treecb23d249d7300c2410f909ca536f3d48e6c7e9e1 /generic/include
parent213e719bf2c298d99efda128d87c80f0cc737aa9 (diff)
libclc: Move max builtin to shared/
Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include')
-rw-r--r--generic/include/clc/clc.h3
-rw-r--r--generic/include/clc/integer/max.h2
-rw-r--r--generic/include/clc/math/max.h2
-rw-r--r--generic/include/clc/math/max.inc1
-rw-r--r--generic/include/clc/shared/max.h5
-rw-r--r--generic/include/clc/shared/max.inc (renamed from generic/include/clc/integer/max.inc)0
6 files changed, 6 insertions, 7 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 80ecd01..c3d7d59 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -45,7 +45,6 @@
#include <clc/math/log.h>
#include <clc/math/log2.h>
#include <clc/math/mad.h>
-#include <clc/math/max.h>
#include <clc/math/pow.h>
#include <clc/math/sin.h>
#include <clc/math/sqrt.h>
@@ -64,11 +63,11 @@
#include <clc/integer/abs.h>
#include <clc/integer/abs_diff.h>
#include <clc/integer/add_sat.h>
-#include <clc/integer/max.h>
#include <clc/integer/sub_sat.h>
/* 6.11.2 and 6.11.3 Shared Integer/Math Functions */
#include <clc/shared/clamp.h>
+#include <clc/shared/max.h>
/* 6.11.5 Geometric Functions */
#include <clc/geometric/cross.h>
diff --git a/generic/include/clc/integer/max.h b/generic/include/clc/integer/max.h
deleted file mode 100644
index e74a459..0000000
--- a/generic/include/clc/integer/max.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BODY <clc/integer/max.inc>
-#include <clc/integer/gentype.inc>
diff --git a/generic/include/clc/math/max.h b/generic/include/clc/math/max.h
deleted file mode 100644
index 3d158f1..0000000
--- a/generic/include/clc/math/max.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BODY <clc/math/max.inc>
-#include <clc/math/gentype.inc>
diff --git a/generic/include/clc/math/max.inc b/generic/include/clc/math/max.inc
deleted file mode 100644
index ce6c6d0..0000000
--- a/generic/include/clc/math/max.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL GENTYPE max(GENTYPE a, GENTYPE b);
diff --git a/generic/include/clc/shared/max.h b/generic/include/clc/shared/max.h
new file mode 100644
index 0000000..7967d4a
--- /dev/null
+++ b/generic/include/clc/shared/max.h
@@ -0,0 +1,5 @@
+#define BODY <clc/shared/max.inc>
+#include <clc/integer/gentype.inc>
+
+#define BODY <clc/shared/max.inc>
+#include <clc/math/gentype.inc>
diff --git a/generic/include/clc/integer/max.inc b/generic/include/clc/shared/max.inc
index ce6c6d0..ce6c6d0 100644
--- a/generic/include/clc/integer/max.inc
+++ b/generic/include/clc/shared/max.inc