blob: d4b5ac2d62a79ed1d006e79f6d9d0c514b69f815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#if !defined(__CLC_SCALAR)
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fmin(__CLC_GENTYPE x, float y) {
return fmin(x, (__CLC_GENTYPE)((__CLC_SCALAR_GENTYPE)y));
}
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fmin(__CLC_GENTYPE x, double y) {
return fmin(x, (__CLC_GENTYPE)((__CLC_SCALAR_GENTYPE)y));
}
#endif // ifdef cl_khr_fp64
#endif // !defined(__CLC_SCALAR)
|