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

sub_sat

Returns x - y and saturates the result.


template <typename I, detail::enable_if_t<(detail::builtin::is_geninteger<I>::value), int> >
I sub_sat(I x, I y)
(1)
  1. Returns `x - y` and saturates the result.
    Parameters:
    • I x
    • I y

syclreference.com — SYCL Reference Pages

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