remquof4

NAME

remquof4 - return remainders and quotients from division of float elements

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

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

DESCRIPTION

The remquof4 function returns the same vector as the corresponding remainderf4 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 remquof4 returns a float vector in which each element is defined as the 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.

ENVIRONMENT

SPU and PPU

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), remquod2(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)