simdpp::store_packed2

From cppreference.com
< mem
template<unsigned N, class V>
void store_packed2( void* ptr, const any_vec<N,V>& a, const any_vec<N,V>& b );

Interleaves the values in a and b in pairs and stores the resulting values in successive locations starting at p.

V must me a non-mask vector type. ptr must be aligned to vector size.

Contents

Parameters

a, b - vectors to store
ptr - pointer to location to store data to

Return value

(none)

Equivalent operation

[ *(p),   *(p+2), *(p+4), ... , *(p+M*2-2) ] = a
[ *(p+1), *(p+3), *(p+5), ... , *(p+M*2-1) ] = b

Here M is the number of elements in the vector.

See also