#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "Before swap_if(a < 4.f,a,b)\n"
<< "<- a = " << a << '\n'
<< "<- b = " << b << '\n'
<< "<- a < 4.f = " << (a < 4.f) << "\n\n";
std::cout << "After swap_if(a < 4.f,a,b)\n"
<< "-> a = " << a << '\n'
<< "-> b = " << b << '\n';
return 0;
}
void swap_if(Mask const &mask, Value &lhs, Value &rhs) noexcept
Conditional swap.
Definition swap_if.hpp:39
Wrapper for SIMD registers.
Definition wide.hpp:70