summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/float
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@imperial.ac.uk>2014-06-26 15:26:38 +0000
committerJeroen Ketema <j.ketema@imperial.ac.uk>2014-06-26 15:26:38 +0000
commit575fb84cc389bba5f9182b41f9b85f200cee4697 (patch)
tree803906d1699c04c015fafa642591955db71b970e /libclc/generic/include/clc/float
parent606769ecc6f41f6c0b1828c1e4420470ac5d2ca7 (diff)
downloadbcm5719-llvm-575fb84cc389bba5f9182b41f9b85f200cee4697.tar.gz
bcm5719-llvm-575fb84cc389bba5f9182b41f9b85f200cee4697.zip
OpenCL 1.1 does not define CL_VERSION_1_2 so use hardcoded number instead
Otherwise the test evaluates to true on OpenCL 1.1 and earlier. Since we therefore cannot use the CL_VERSION_?_? macros move them to the proper position in the top-level header. llvm-svn: 211787
Diffstat (limited to 'libclc/generic/include/clc/float')
-rw-r--r--libclc/generic/include/clc/float/definitions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libclc/generic/include/clc/float/definitions.h b/libclc/generic/include/clc/float/definitions.h
index 6d532a5da02..18f2cbcf3b9 100644
--- a/libclc/generic/include/clc/float/definitions.h
+++ b/libclc/generic/include/clc/float/definitions.h
@@ -49,7 +49,7 @@
#ifdef cl_khr_fp16
-#if __OPENCL_VERSION__ >= CL_VERSION_1_2
+#if __OPENCL_VERSION__ >= 120
#define HALF_DIG 3
#define HALF_MANT_DIG 11
OpenPOWER on IntegriCloud