◆ bitofsign
Callable object computing the bitofsign value. Required header: Members Functions
Definition: value.hpp:31 Parameters
Return value The call
auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::bitofsign Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/bitofsign.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<4>>;
int main()
{
wide_ft pf = {-1.0f, 0.0f, 3.0f, -0.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = -32768.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_bitofsign_ bitofsign Callable object computing the bitofsign value. Definition: bitofsign.hpp:77 |