absi4

NAME

absi4 - return the absolute values of integer values

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector signed int absi4(vector signed int x);
Link with -lsimdmath

Inline call syntax:

#include <simdmath/absi4.h>
vector signed int _absi4(vector signed int x);

Parameters:

x input vector

DESCRIPTION

The absi4 function returns a vector containing the absolute values of the elements of the input vector.

RETURN VALUE

The absi4 function returns a signed int vector in which each element is defined as the absolute value of the corresponding element of the input vector.

ENVIRONMENT

SPU and PPU

CONFORMING TO

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis:

ISO9899 (C99) abs function

SEE ALSO

abs(3), fabsf4(3), fabsd2(3), llabsi2(3), signbit(3), signbitf4(3), signbitd2(3), negate(3), negatef4(3), negated2(3), negatei4(3), negatell2(3), copysign(3), copysignf4(3), copysignd2(3)