[Libclc-dev] [PATCH 1/4] math/binary_decl.inc: Do not declare mixed float/double functions

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Sun Oct 8 01:55:56 PDT 2017


fmin/fmax only need vector/scalar mix

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 generic/include/clc/math/binary_decl.inc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/generic/include/clc/math/binary_decl.inc b/generic/include/clc/math/binary_decl.inc
index 70a7114..41f07c3 100644
--- a/generic/include/clc/math/binary_decl.inc
+++ b/generic/include/clc/math/binary_decl.inc
@@ -1,6 +1,2 @@
 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, float b);
-
-#ifdef cl_khr_fp64
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, double b);
-#endif
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
-- 
2.13.6



More information about the Libclc-dev mailing list