3 #include
"../clcmacro.h"
5 _CLC_DEFINE_BINARY_BUILTIN
(float, fmin
, __builtin_fminf
, float
, float
);
9 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
11 _CLC_DEFINE_BINARY_BUILTIN
(double, fmin
, __builtin_fmin
, double
, double
);
16 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
18 _CLC_DEF _CLC_OVERLOAD half fmin
(half x
, half y
)
24 return
(y < x
) ? y
: x
;
26 _CLC_BINARY_VECTORIZE
(_CLC_OVERLOAD _CLC_DEF
, half
, fmin
, half
, half
)
30 #define __CLC_BODY
<fmin.inc
>
31 #include
<clc
/math
/gentype.inc
>