vec_abs: Vector Absolute Value
d = vec_abs(a)
Returns a vector containing the absolute values of the contents of the given vector. The value of each element of the result is the absolute value of the corresponding element of
a
.
Note:
vector double
will not cause IEEE exception.
Table 1. Vector Absolute Value
d
a
vector signed char
vector signed char
vector signed short
vector signed short
vector signed int
vector signed int
vector signed long long
vector signed long long
vector double
vector double
Parent topic:
Arithmetic