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 |
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.
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.
SPU only
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) lldiv function