vec_nabs

Purpose

Returns a vector containing the results of performing a negative-absolute operation using the given vector.

Syntax

d=vec_nabs(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Result and argument types
d a
vector signed char vector signed char
vector signed short vector signed short
vector signed int vector signed int
vector float vector float
vector double vector double
Note: The following types are valid when the -mcpu option is set to target POWER8 processors, or higher.
Table 2. Result and argument types
d a
vector signed long long vector signed long long

Result value

This function computes the absolute value of each element in the given vector and then assigns the negated value of the result to the corresponding elements in the result vector.