simdpp::load_splat

From libsimdpp-docs
< mem
template<class V>
V load_splat( void* ptr );
_DETAIL_ load_splat( void* ptr );

Loads a single value from memory and sets all elements of a vector to it.

The first overload loads to given non-mask vector type.

The second overloads returns a value of unspecified type with which any non-mask vector can be initialized. E.g. uint32<4> x = load_splat(pointer);

Parameters[edit]

ptr - pointer to location to load data from

Return value[edit]

(1) Vector that contains value loaded from address ptr.

(2) An value of unspecified type that can initialize a vector.

Equivalent operation[edit]

r0 = *ptr
...
rN = *ptr

See also[edit]