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