From c59e018ed01a75a8da1260f8fe28d59ee961c339 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Tue, 9 Feb 2016 22:17:42 +0000 Subject: math: Fix log2 vectorization on non-fp64 hw reviewer: tstellard Signed-off-by: Jan Vesely git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@260301 91177308-0d34-0410-b5e6-96231b3b80d8 --- generic/lib/math/log2.cl | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3