summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2016-02-09 22:17:42 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2016-02-09 22:17:42 +0000
commitc59e018ed01a75a8da1260f8fe28d59ee961c339 (patch)
tree2af42702126e8aa4231d5ba1882acce36e5cc6d0
parentbd61e82bc137e4f772fba49a3f52a57410a33905 (diff)
math: Fix log2 vectorization on non-fp64 hw
reviewer: tstellard Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@260301 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--generic/lib/math/log2.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/lib/math/log2.cl b/generic/lib/math/log2.cl
index df6eeb2..8776a80 100644
--- a/generic/lib/math/log2.cl
+++ b/generic/lib/math/log2.cl
@@ -34,4 +34,6 @@
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, log2, float);
+#ifdef cl_khr_fp64
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, log2, double);
+#endif // cl_khr_fp64