remainderd2

NAME

remainderd2 - return remainders from division of double elements

SYNOPSIS

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

DESCRIPTION

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.

RETURN VALUE

The function remainderd2 returns a double vector in which each element is defined as the exact remainder of x/y.

ENVIRONMENT

SPU only

CONFORMING TO

IEC 60559

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis

ISO9899 (C99) remainder functions, IEC 60559

SEE ALSO

remainder(3) , remainderf4(3), div(3), divf4(3), divi4(3), divu4(3), divd2(3), lldivi2(3), lldivu2(3), fma(3), fmaf4(3), fmad2(3), modf(3), modff4(3), modfd2(3), fmod(3), fmodf4(3), fmodd2(3), remquo(3), remquof4(3), remquod2(3), recip(3), recipf4(3), recipd2(3), rsqrt(3), rsqrtf4(3), rsqrtd2(3)