copysignf4

NAME

copysignf4 - copy floating element signs from one vector to another

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

#include <simdmath.h>
#include <copysignf4.h>
vector float _copysignf4(vector float x, vector float y);
Parameters  
x,y input vectors

DESCRIPTION

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

RETURN VALUE

The function copysignf4 returns a float 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 and PPU

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) copysign functions.

SEE ALSO

copysign(3), copysignd2(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)