remquod2

NAME

remquod2 - return remainders and quotients from division of double elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector double remquod2(vector double x, vector double y, vector signed int *pquo);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <remquod2.h>
vector double _remquod2(vector double x, vector double y, vector signed int *pquo);
Parameters  
x,y input vectors
*pquo pointer to quotient vector

DESCRIPTION

The remquod2 function returns the same vector as the corresponding remainderd2 function. In addition it places into *pquo a vector of values of which the sign of each is the sign of x/y, and the magnitude of each is the congruent modulo 2^n to the magnitude of the integral quotient of the corresponding element of x/y (where n is an implementation-defined integer greater than or equal to 3).

RETURN VALUE

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

The integral quotient of the corresponding element of x/y mod n is placed in the corresponding element of the vector pointed to by *pquo. The first quotient is placed in slots 0 and 1. The second quotient is placed in slots 2 and 3.

ENVIRONMENT

SPU only

CONFORMING TO

IEC60559

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

NOTES

Basis

ISO9899 (C99) remquo functions, IEC 60559

SEE ALSO

remquo(3), remquof4(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), remainder(3), remainderf4(3), remainderd2(3), recip(3) , recipf4(3), recipd2(3), rsqrt(3), rsqrtf4(3), rsqrtd2(3)