simdpp::load_packed2

From libsimdpp-docs
< mem
template<unsigned N, class V>
void load_packed2( any_vec<N,V>& a, any_vec<N,V>& b, const void* ptr );

Loads values packed in pairs, de-interleaves them and stores the result into two vectors.

ptr must be aligned to the vector size.

Parameters[edit]

a, b - vectors to load values to
ptr - pointer to location to load data from

Return value[edit]

(none)

Equivalent operation[edit]

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

See also[edit]