Computes the largest integer not greater than the input.
{
template< eve::real_value T, eve::real_value U, eve::value V>
}
constexpr callable_clamp_ clamp
Computes the largest integer not greater than the input.
Definition: clamp.hpp:94
constexpr callable_hi_ hi
Computes the most significant half of each lane.
Definition: hi.hpp:54
constexpr callable_lo_ lo
Computes the least significant half of each lane.
Definition: lo.hpp:54
Definition: all_of.hpp:22
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_t xi = {2, -3, 0, 4};
wide_t
lo = {3, -2, -10, 0};
wide_t
hi = {4, -1, 0, 5};
std::cout << "---- ximd" << '\n'
<< " <- xi = " << xi << '\n'
<<
" <- lo = " <<
lo <<
'\n'
<<
" <- hi = " <<
hi <<
'\n'
float sxi = 3, slo = 3, shi = 4;
std::cout << "---- scalar" << '\n'
<< " sxi = " << sxi << '\n'
<< " slo = " << slo << '\n'
<< " shi = " << shi << '\n'
<<
" -> clamp(sxii, slo, shi) = " <<
eve::clamp(sxi, slo, shi) <<
'\n';
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65