Procedure call syntax:
#include <simdmath.h> |
vector float fmaxf4(vector float x, vector float y); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <fmaxf4.h> |
vector float _fmaxf4(vector float x, vector float y); |
Parameters | |
x.y | input vectors |
The fmaxf4 function returns a vector containing the larger (more positive) elements of x and y.
On the SPU single-precision subnormal values are not coerced to zero by this function. Instead, it compares them as normal values even though the floating-point instructions of the SPU do not.
In double precision subnormals1 equate to zero and so compare as equal. This means that the value returned may be either one of the subnormals, thereby making the following possibly true for two subnormal inputs:
fmaxf4(a, b) != fmaxf4(b, a)
SPU and PPU
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) fmax functions.