syclreference.com
  1. SYCL
  2. | API Reference
  3. | Built-Ins
  4. | max

max

MISSING


template <typename F1, typename F2, typename F, detail::enable_if_t<((detail::builtin::is_genfloat<F1>::value && detail::builtin::is_genfloat<F2>::value) || (detail::builtin::is_genfloath<F1>::value && detail::builtin::is_sgenfloat<F2, half>::value) || (detail::builtin::is_genfloatf<F1>::value && detail::builtin::is_sgenfloat<F2, float>::value) || (detail::builtin::is_genfloatd<F1>::value && detail::builtin::is_sgenfloat<F2, double>::value)), int> >
F max(F1 x, F2 y)
(1)
template <typename I, detail::enable_if_t<(detail::builtin::is_geninteger<I>::value), int> >
I max(I x, I y)
(2)
template <typename I, typename S, detail::enable_if_t<((detail::builtin::is_geninteger<I>::value && detail::builtin::is_sgeninteger<S>::value)), int> >
I max(I x, S y)
(3)
  1. Returns y if `x < y`, otherwise it returns x. If x or y are infinite or NaN, the return values are undefined.
    Parameters:
    • F1 x
    • F2 y
  2. Returns y if `x < y`, otherwise it returns x.
    Parameters:
    • I x
    • I y
  3. Returns y if `x < y`, otherwise it returns x.
    Parameters:
    • I x
    • S y

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000