simdpp::load_packed2

From cppreference.com
< 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.

Contents

Parameters

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

Return value

(none)

Equivalent operation

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

See also