Returns a vector containing the differences of each set of corresponding elements of the given vectors.
This function emulates the operation on long long vectors.
d=vec_sub(a, b)
The following table describes the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector signed char | vector signed char | vector signed char |
| vector unsigned char | vector unsigned char | vector unsigned char |
| vector signed short | vector signed short | vector signed short |
| vector unsigned short | vector unsigned short | vector unsigned short |
| vector signed int | vector signed int | vector signed int |
| vector unsigned int | vector unsigned int | vector unsigned int |
| vector signed long long | vector signed long long | vector signed long long |
| vector unsigned long long | vector unsigned long long | vector unsigned long long |
| vector float | vector float | vector float |
| vector double | vector double | vector double |
The value of each element of the result is the result of subtracting the value of the corresponding element of b from the value of the corresponding element of a. The arithmetic is modular for integer vectors.