◆ fls
Callable object computing the fls operation. Required header: Members Functions
Definition: value.hpp:63 Parameters
Return value Computes elementwise the index or position of the last significant bit set to one in the word counting from the least significant bit position. The result is undefined for a zero input if the pedantic decorator is not used. auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::fls Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/pedantic/fls.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_it = eve::wide<std::uint32_t, eve::fixed<8>>;
int main()
{
wide_it pi = {14, 1, 3, 7, 20, 23000, 0, 27};
std::cout << "---- simd" << '\n'
std::uint32_t xf = 48;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_fls_ fls Callable object computing the fls operation. Definition: fls.hpp:80 constexpr pedantic_type const pedantic Higher-order Callable Object imbuing more standard semantic onto other Callable Objects. Definition: pedantic.hpp:56 |