Procedure call syntax:
| #include <simdmath.h> |
| vector unsigned int isequalf4(vector float x, vector float y); |
| Link with -lsimdmath |
Inline call syntax:
| #include <simdmath.h> |
| #include <isequalf4.h> |
| vector unsigned int _isequalf4(vector float x, vector float y); |
| Parameters | |
| x | input vector |
| y | input vector |
The isequalf4 function returns a vector in which each element indicates if the corresponding elements of x and y are equal. This function correctly compares subnormal numbers.
Special Cases:
NaNs always compare as unequal.
zeros compare as equal regardless of sign.
infinities compare as equal if they have the same sign.
| UINT_MAX | if the elements of x and y are equal. |
| 0 | otherwise. |
SPU and PPU
SIMD Math library specification for the Cell Broadband Engine⢠Architecture.