Procedure call syntax:
| #include <simdmath.h> |
| vector double remainderd2(vector double x, vector double y); |
| Link with -lsimdmath |
Inline call syntax:
| #include <simdmath.h> |
| #include <remainderd2.h> |
| vector double _remainderd2(vector double x, vector double y); |
| Parameters | |
| x,y | input vectors |
The remainderd2 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 remainderd2 returns a double vector in which each element is defined as the exact remainder of x/y.
SPU only
IEC 60559
SIMD Math library specification for the Cell Broadband Engine⢠Architecture.
Basis
ISO9899 (C99) remainder functions, IEC 60559