2013-07-09 01:27:02 +08:00
|
|
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b) {
|
2013-06-27 02:20:46 +08:00
|
|
|
return (a > b ? a : b);
|
|
|
|
}
|
2013-06-27 02:21:49 +08:00
|
|
|
|
2013-07-09 01:27:02 +08:00
|
|
|
#ifndef __CLC_SCALAR
|
|
|
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b) {
|
|
|
|
return (a > (__CLC_GENTYPE)b ? a : (__CLC_GENTYPE)b);
|
2013-06-27 02:21:49 +08:00
|
|
|
}
|
2013-07-09 01:27:02 +08:00
|
|
|
#endif
|