lldivu2

NAME

lldivu2 - return quotients of unsigned long long elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
(lldivu2_t) lldivu2(vector unsigned long long x, vector unsigned long long y);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <_lldivu2.h>
(lldivu2_t) _lldivu2(vector unsigned long long x, vector unsigned long long y);
Parameters  
x,y input vectors

DESCRIPTION

The lldivu2 function divides each element of x by the corresponding element of y and returns the quotients in a structure of type lldivu2_t(), which contains a vector of quotients quot and a vector of remainders rem.

Each element of the vector in the structure member quot is the algebraic quotient truncated towards zero. Each element of the vector in the structure member rem is the corresponding remainder, such that for each element x == quot * y + rem. If an element of y is zero, then the corresponding element of the resulting quotient is zero.

RETURN VALUE

The function lldivu2 returns a structure containing vectors of quotients and remainders produced by dividing each element of x by the corresponding element of y. If an element of y is zero then the corresponding elements of the result are zero.

ENVIRONMENT

SPU only

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) lldiv function

SEE ALSO

lldivu2_t(3), div(3), divf4(3), divf4_fast(3), divi4(3), divu4(3), divd2(3), lldivi2(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), remquo(3) , remquof4(3), remquod2(3), recip(3), recipf4(3), recipd2(3), rsqrt(3), rsqrtf4(3), rsqrtd2(3)