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

popcount

Returns the number of non-zero bits in x.


template <typename I, typename return_t, detail::enable_if_t<(detail::builtin::is_geninteger<I>::value), int> >
return_t popcount(I x)
(1)
  1. Returns the number of non-zero bits in `x`.
    Parameters:
    • I x

syclreference.com — SYCL Reference Pages

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