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

bitselect

Each bit of the result is the corresponding bit of a if the corresponding bit of c is 0.


template <typename T, detail::enable_if_t<(detail::builtin::is_gentype<T>::value), int> >
T bitselect(T a, T b, T c)
(1)
  1. Each bit of the result is the corresponding bit of a if the corresponding bit of c is 0.
    Parameters:
    • T a
    • T b
    • T c

syclreference.com — SYCL Reference Pages

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