Define FLOAT in floatn.inc.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 May 2012 13:35:35 +0000 (13:35 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 May 2012 13:35:35 +0000 (13:35 +0000)
llvm-svn: 157614

libclc/generic/include/clc/geometric/floatn.inc

index c77c464..e84545a 100644 (file)
@@ -1,3 +1,5 @@
+#define FLOAT float
+
 #define FLOATN float
 #include BODY
 #undef FLOATN
 #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