summaryrefslogtreecommitdiff
path: root/generic/lib/shared/max.inc
blob: 6a12b6faa2cf7b3397c80f7136eebf314edb8afc (plain)
1
2
3
4
5
6
7
8
9
_CLC_OVERLOAD _CLC_DEF GENTYPE max(GENTYPE a, GENTYPE b) {
  return (a > b ? a : b);
}

#ifndef SCALAR
_CLC_OVERLOAD _CLC_DEF GENTYPE max(GENTYPE a, SCALAR_GENTYPE b) {
  return (a > (GENTYPE)b ? a : (GENTYPE)b);
}
#endif