2 #include
<clc
/clcmacro.h
>
4 _CLC_DEFINE_BINARY_BUILTIN
(float, fmax
, __builtin_fmaxf
, float
, float
);
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
10 _CLC_DEFINE_BINARY_BUILTIN
(double, fmax
, __builtin_fmax
, double
, double
);
16 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
18 _CLC_DEF _CLC_OVERLOAD half fmax
(half x
, half y
)
24 return
(x < y
) ? y
: x
;
26 _CLC_BINARY_VECTORIZE
(_CLC_OVERLOAD _CLC_DEF
, half
, fmax
, half
, half
)
30 #define __CLC_BODY
<fmax.inc
>
31 #include
<clc
/math
/gentype.inc
>