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