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

clz

Returns the number of leading 0-bits in x, starting at the most significant bit position.


template <typename I, typename return_t, detail::enable_if_t<(detail::builtin::is_geninteger<I>::value), int> >
return_t clz(I x)
(1)
  1. Returns the number of leading 0-bits in `x`, starting at the most significant bit position.
    Parameters:
    • I x

syclreference.com — SYCL Reference Pages

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