E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ countl_zero

auto eve::countl_zero = functor<countl_zero_t>
inlineconstexpr
  1. The operation is performed conditionnaly.

External references

Example

// revision 0
#include <eve/module/core.hpp>
#include <iostream>
int main()
{
eve::wide wu0{0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u};
std::cout << "<- wu0 = " << wu0 << "\n";
std::cout << "-> countl_zero(wu0) = " << eve::countl_zero(wu0) << "\n";
std::cout << "-> countl_zero[ignore_last(2)](wu0) = " << eve::countl_zero[eve::ignore_last(2)](wu0) << "\n";
std::cout << "-> countl_zero[wu0 != 0](wu0) = " << eve::countl_zero[wu0 != 0](wu0) << "\n";
}
constexpr auto countl_zero
elementwise_callableobject computing the number of consecutive bits unset in a value starting from le...
Definition countl_zero.hpp:72
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70