simdpp::load_splat
From cppreference.com
< 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);
Contents |
Parameters
ptr | - | pointer to location to load data from |
Return value
(1) Vector that contains value loaded from address ptr
.
(2) An value of unspecified type that can initialize a vector.
Equivalent operation
r0 = *ptr ... rN = *ptr
See also
This section is incomplete |