copysignd2

NAME

copysignd2 - copy double element signs from one vector to another

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector double copysignd2(vector double x, vector double y);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <copysignd2.h>
vector double _copysignd2(vector double x, vector double y);
Parameters  
x,y input vectors

DESCRIPTION

The copysignd2 function returns a copy of the vector x with the sign bits replaced by those from y.

RETURN VALUE

The function copysignd2 returns a double vector in which each element is defined as the magnitude of the corresponding element of x with the sign of the corresponding element of y.

ENVIRONMENT

SPU only

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) copysign functions.

SEE ALSO

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