2 #include
<clc
/clcmacro.h
>
4 _CLC_DEFINE_BINARY_BUILTIN
(float, fmin
, __builtin_fminf
, float
, float
);
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
10 _CLC_DEFINE_BINARY_BUILTIN
(double, fmin
, __builtin_fmin
, double
, double
);
15 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
17 _CLC_DEF _CLC_OVERLOAD half fmin
(half x
, half y
)
23 return
(y < x
) ? y
: x
;
25 _CLC_BINARY_VECTORIZE
(_CLC_OVERLOAD _CLC_DEF
, half
, fmin
, half
, half
)
29 #define __CLC_BODY
<fmin.inc
>
30 #include
<clc
/math
/gentype.inc
>