vec_ld
Purpose
Loads a vector from the given memory address.
Syntax
d=vec_ld(a, b)
Result and argument types
The following tables describe the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector float | int | const vector float * |
| const float * | ||
| vector signed int | const vector signed int * | |
| const signed int * | ||
| vector unsigned int | const vector unsigned int * | |
| const unsigned int * | ||
| vector signed short | const vector signed short * | |
| const signed short * | ||
| vector unsigned short | const vector unsigned short * | |
| const unsigned short * | ||
| vector signed char | const vector signed char * | |
| const signed char* | ||
| vector unsigned char | const vector unsigned char * | |
| const unsigned char * | ||
| vector bool char | const vector bool char * | |
| vector bool int | const vector bool int * | |
| vector bool short | const vector bool short * | |
| vector pixel | const vector pixel * |
| d | a | b |
|---|---|---|
| vector unsigned int | signed long | 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
The value of a is added to the address that is
specified by 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.