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 |
The copysignf4 function returns a copy of the vector x with the sign bits replaced by those from y.
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.
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) copysign functions.