[libclc] r260301 - math: Fix log2 vectorization on non-fp64 hw

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 14:17:43 PST 2016


Author: jvesely
Date: Tue Feb  9 16:17:42 2016
New Revision: 260301

URL: http://llvm.org/viewvc/llvm-project?rev=260301&view=rev
Log:
math: Fix log2 vectorization on non-fp64 hw

reviewer: tstellard
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Modified:
    libclc/trunk/generic/lib/math/log2.cl

Modified: libclc/trunk/generic/lib/math/log2.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/log2.cl?rev=260301&r1=260300&r2=260301&view=diff
==============================================================================
--- libclc/trunk/generic/lib/math/log2.cl (original)
+++ libclc/trunk/generic/lib/math/log2.cl Tue Feb  9 16:17:42 2016
@@ -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




More information about the cfe-commits mailing list