================
@@ -230,23 +222,22 @@ __clc_log(double a)
return ret;
}
-#endif // cl_khr_fp64
-
-#ifdef cl_khr_fp16
+#elif __CLC_FPSIZE == 16
-_CLC_OVERLOAD _CLC_DEF half
+_CLC_OVERLOAD _CLC_DEF __CLC_HALFN
#if defined(COMPILING_LOG2)
-__clc_log2(half x) {
- return (half)__clc_log2((float)x);
+__clc_log2(__CLC_HALFN x) {
+ return (__CLC_HALFN)__clc_log2((__CLC_FLOATN)x);
----------------
wenju-he wrote:
use __CLC_CONVERT_HALFN for the conversion? Also see line 234 and line 238
https://github.com/llvm/llvm-project/pull/187537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits