vec_ld
Purpose
Loads a vector from the given memory address.
Syntax
d=vec_ld(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector unsigned int | int | const unsigned long* |
vector signed int | const signed long* | |
vector unsigned char |
|
const vector unsigned char* |
const unsigned char* | ||
vector signed char | const vector signed char* | |
const signed char* | ||
vector unsigned short | const vector unsigned short* | |
const unsigned short* | ||
vector signed short | const vector signed short* | |
const signed short* | ||
vector unsigned int | const vector unsigned int* | |
const unsigned int* | ||
vector signed int | const vector signed int* | |
const signed int* | ||
vector float | const vector float* | |
const float* | ||
vector bool int | const vector bool int* | |
vector bool char | const vector bool char* | |
vector bool short | const vector bool short* | |
vector pixel | const vector pixel* |
Result value
a is added to the address of b, and the sum is truncated to a multiple of 16 bytes. The result is the content of the 16 bytes of memory starting at this address.