◆ bit_ceil
Callable object computing the bit_ceil operation. Required header: Members Functions
template< unsigned_value T > auto operator()( T x ) const noexcept;
Parameters
Return value Computes elementwise the smallest integral power of two that is not smaller than auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::bit_ceil Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/bit_ceil.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_bit_ceil_ bit_ceil Callable object computing the bit_ceil operation. Definition: bit_ceil.hpp:73 |