Lines Matching refs:r

559 	u64 r[ECC_MAX_DIGITS * 2];  in vli_mmod_special()  local
561 vli_set(r, product, ndigits * 2); in vli_mmod_special()
562 while (!vli_is_zero(r + ndigits, ndigits)) { in vli_mmod_special()
563 vli_umult(t, r + ndigits, c, ndigits); in vli_mmod_special()
564 vli_clear(r + ndigits, ndigits); in vli_mmod_special()
565 vli_add(r, r, t, ndigits * 2); in vli_mmod_special()
569 while (vli_cmp(r, t, ndigits * 2) >= 0) in vli_mmod_special()
570 vli_sub(r, r, t, ndigits * 2); in vli_mmod_special()
571 vli_set(result, r, ndigits); in vli_mmod_special()
593 u64 r[ECC_MAX_DIGITS * 2]; in vli_mmod_special2() local
601 vli_set(r, product, ndigits); in vli_mmod_special2()
604 vli_clear(r + ndigits, ndigits); in vli_mmod_special2()
605 carry = vli_is_negative(r, ndigits); in vli_mmod_special2()
607 r[ndigits - 1] &= (1ull << 63) - 1; in vli_mmod_special2()
620 vli_sub(r, r, qc, ndigits * 2); in vli_mmod_special2()
622 vli_add(r, r, qc, ndigits * 2); in vli_mmod_special2()
624 while (vli_is_negative(r, ndigits * 2)) in vli_mmod_special2()
625 vli_add(r, r, m, ndigits * 2); in vli_mmod_special2()
626 while (vli_cmp(r, m, ndigits * 2) >= 0) in vli_mmod_special2()
627 vli_sub(r, r, m, ndigits * 2); in vli_mmod_special2()
629 vli_set(result, r, ndigits); in vli_mmod_special2()
691 u64 r[ECC_MAX_DIGITS * 2]; in vli_mmod_barrett() local
697 vli_mult(r, mod, q + ndigits, ndigits); in vli_mmod_barrett()
698 vli_sub(r, product, r, ndigits * 2); in vli_mmod_barrett()
699 while (!vli_is_zero(r + ndigits, ndigits) || in vli_mmod_barrett()
700 vli_cmp(r, mod, ndigits) != -1) { in vli_mmod_barrett()
703 carry = vli_sub(r, r, mod, ndigits); in vli_mmod_barrett()
704 vli_usub(r + ndigits, r + ndigits, carry, ndigits); in vli_mmod_barrett()
706 vli_set(result, r, ndigits); in vli_mmod_barrett()