Procedure call syntax:
#include <simdmath.h> |
vector unsigned int signbitf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <signbitf4.h> |
vector unsigned int _signbitf4(vector float x); |
Parameters | |
x | input vector |
The signbitf4 function returns a vector in which elements contain all ones or zeros, depending on the sign of the corresponding input vector element.
Note that the signbitf4 function is not logically equivalent to (x < 0.0). IEEE 754 floating point rules include a signed zero, so if the input value is -0.0 signbitf4 will return non-zero even though the naïve implementation will not.
UINT_MAX | if the sign bit is set for the corresponding element of x. |
0 | otherwise. |
SPU and PPU
SIMD Math library specification for the Cell Broadband Engine™ Architecture.
Basis
ISO9899 (C99) signbit macros.