simdpp::store_packed2

From libsimdpp-docs
< 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.

Parameters[edit]

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

Return value[edit]

(none)

Equivalent operation[edit]

[ *(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[edit]