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

mad_sat

Returns a * b + c and saturates the result.


template <typename I, detail::enable_if_t<(detail::builtin::is_geninteger<I>::value), int> >
I mad_sat(I a, I b, I c)
(1)
  1. Returns `a * b + c` and saturates the result.
    Parameters:
    • I a
    • I b
    • I c

syclreference.com — SYCL Reference Pages

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