2 #if !defined(__CLC_SCALAR)
4 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fmax(__CLC_GENTYPE x, float y) {
5 return fmax(x, (__CLC_GENTYPE)((__CLC_SCALAR_GENTYPE)y));
10 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
12 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fmax(__CLC_GENTYPE x, double y) {
13 return fmax(x, (__CLC_GENTYPE)((__CLC_SCALAR_GENTYPE)y));
16 #endif // ifdef cl_khr_fp64
20 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
22 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fmax(__CLC_GENTYPE x, half y) {
23 return fmax(x, (__CLC_GENTYPE)((__CLC_SCALAR_GENTYPE)y));
26 #endif // ifdef cl_khr_fp16
28 #endif // !defined(__CLC_SCALAR)