E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ combine

auto eve::combine = functor<combine_t>
inlineconstexpr

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template<simd_value W>
typename W::combined_type combine(W a, W b) noexcept;
}
constexpr auto combine
Combines two SIMD values in a larger one.
Definition combine.hpp:58
EVE Main Namespace.
Definition abi.hpp:18

Parameters

  • a, b: two SIMD values of the same type and cardinal

Return value

  • A SIMD value contains the parameters concatenation, thus producing a register of twice as many elements.

Example

#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {-1.0f, 2.0f, -3.0f, -32768.0f};
auto pf2 = eve::combine(pf,pf);
std::cout << "pf ---> " << pf << "\n";
std::cout << "eve::combine(pf,pf) ---> " << pf2 << "\n";
}
Wrapper for SIMD registers.
Definition wide.hpp:93