summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-05-09 22:31:03 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2015-05-09 22:31:03 +0000
commitb0fb990b54542c4309473b661c5716a4ebebd82d (patch)
treee3c9d73883064af7d0bb790d4b54d85e7721532c /libclc/generic/lib/math
parent7c829fe14981ef97bc9f70f760bf5df3b23edd95 (diff)
downloadbcm5719-llvm-b0fb990b54542c4309473b661c5716a4ebebd82d.tar.gz
bcm5719-llvm-b0fb990b54542c4309473b661c5716a4ebebd82d.zip
math: limit half_sqrt to single precision
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 236941
Diffstat (limited to 'libclc/generic/lib/math')
-rw-r--r--libclc/generic/lib/math/half_sqrt.cl6
1 files changed, 2 insertions, 4 deletions
diff --git a/libclc/generic/lib/math/half_sqrt.cl b/libclc/generic/lib/math/half_sqrt.cl
index e1716cf4090..a02896aa290 100644
--- a/libclc/generic/lib/math/half_sqrt.cl
+++ b/libclc/generic/lib/math/half_sqrt.cl
@@ -22,9 +22,7 @@
#include <clc/clc.h>
-#ifdef cl_khr_fp64
-#pragma OPENCL EXTENSION cl_khr_fp64 : enable
-#endif
-
#define __CLC_BODY <half_sqrt.inc>
+#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
+#undef __FLOAT_ONLY
OpenPOWER on IntegriCloud