• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE mix(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE a) {
2  return mad( y - x, a, x );
3}
4
5#ifndef __CLC_SCALAR
6_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE mix(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_SCALAR_GENTYPE a) {
7    return mix(x, y, (__CLC_GENTYPE)a);
8}
9#endif
10