E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
combine
eve::combine = functor<combine_t>
inline
constexpr
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
;
}
eve::combine
constexpr auto combine
Combines two SIMD values in a larger one.
Definition
combine.hpp:72
eve::translate_t
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition
translation.hpp:107
eve
EVE Main Namespace.
Definition
abi.hpp:19
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>
using
wide_ft
=
eve::wide<float, eve::fixed<4>
>;
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"
;
}
eve