summaryrefslogtreecommitdiff
path: root/generic/include/clc
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-05-29 13:35:35 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-05-29 13:35:35 +0000
commit54397b81aa3d5f5b871423368cca162a27a6e98f (patch)
treedf652a40319666c6ef41b4163eaf24d1338f7e94 /generic/include/clc
parent0d9bead544e7bd9b7312989dffe9e73c95810542 (diff)
Define FLOAT in floatn.inc.
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@157614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include/clc')
-rw-r--r--generic/include/clc/geometric/floatn.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/include/clc/geometric/floatn.inc b/generic/include/clc/geometric/floatn.inc
index c77c464..e84545a 100644
--- a/generic/include/clc/geometric/floatn.inc
+++ b/generic/include/clc/geometric/floatn.inc
@@ -1,3 +1,5 @@
+#define FLOAT float
+
#define FLOATN float
#include BODY
#undef FLOATN
@@ -14,7 +16,12 @@
#include BODY
#undef FLOATN
+#undef FLOAT
+
#ifdef cl_khr_fp64
+
+#define FLOAT double
+
#define FLOATN double
#include BODY
#undef FLOATN
@@ -30,6 +37,9 @@
#define FLOATN double4
#include BODY
#undef FLOATN
+
+#undef FLOAT
+
#endif
#undef BODY