Lines Matching refs:right
174 static int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits) in vli_cmp() argument
179 if (left[i] > right[i]) in vli_cmp()
181 else if (left[i] < right[i]) in vli_cmp()
223 static u64 vli_add(u64 *result, const u64 *left, const u64 *right, in vli_add() argument
232 sum = left[i] + right[i] + carry; in vli_add()
243 static u64 vli_sub(u64 *result, const u64 *left, const u64 *right, in vli_sub() argument
252 diff = left[i] - right[i] - borrow; in vli_sub()
262 static uint128_t mul_64_64(u64 left, u64 right) in mul_64_64() argument
266 u64 b0 = right & 0xffffffffull; in mul_64_64()
267 u64 b1 = right >> 32; in mul_64_64()
297 static void vli_mult(u64 *result, const u64 *left, const u64 *right, in vli_mult() argument
318 product = mul_64_64(left[i], right[k - i]); in vli_mult()
375 static void vli_mod_add(u64 *result, const u64 *left, const u64 *right, in vli_mod_add() argument
380 carry = vli_add(result, left, right, ndigits); in vli_mod_add()
392 static void vli_mod_sub(u64 *result, const u64 *left, const u64 *right, in vli_mod_sub() argument
395 u64 borrow = vli_sub(result, left, right, ndigits); in vli_mod_sub()
536 static void vli_mod_mult_fast(u64 *result, const u64 *left, const u64 *right, in vli_mod_mult_fast() argument
541 vli_mult(product, left, right, ndigits); in vli_mod_mult_fast()