lldivi2

NAME

lldivi2 - return quotients of long long elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
(lldivi2_t) lldivi2(vector signed long long x, vector signed long long y);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <lldivi2.h>
(lldivi2_t) _lldivi2(vector signed long long x, vector signed long long y);
Parameters  
x,y input vectors

DESCRIPTION

The lldivi2 function divides each element of x by the corresponding element of y and returns the quotients in a structure of type lldivi2_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 lldivi2 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

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