Procedure call syntax:
#include <simdmath.h> |
vector float remainderf4(vector float x, vector float y); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <remainderf4.h> |
vector float _remainderf4(vector float x, vector float y); |
Parameters | |
x,y | input vectors |
The remainderf4 function computes the remainder x REM y required by IEC 60559: When y 0 the remainder r = x REM y is defined regardless of the rounding mode by the mathematical relation r = x - ny, where n is the integer nearest the exact value of x/y; whenever |n - x /y| = 1/2 then n is even. Thus the remainder is always exact. If r = 0 its sign shall be that of x.
The function remainderf4 returns a float vector in which each element is defined as the exact remainder of x/y.
SPU and PPU
IEC 60559
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) remainder functions, IEC 60559