Lines Matching refs:carry
59 BN_ULONG carry, temp, mask, *rp, *tp = storage; in bn_mod_add_fixed_top() local
74 for (i = 0, ai = 0, bi = 0, carry = 0; i < mtop;) { in bn_mod_add_fixed_top()
76 temp = ((ap[ai] & mask) + carry) & BN_MASK2; in bn_mod_add_fixed_top()
77 carry = (temp < carry); in bn_mod_add_fixed_top()
81 carry += (tp[i] < temp); in bn_mod_add_fixed_top()
88 carry -= bn_sub_words(rp, tp, m->d, mtop); in bn_mod_add_fixed_top()
90 rp[i] = (carry & tp[i]) | (~carry & rp[i]); in bn_mod_add_fixed_top()
140 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local
165 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
166 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()
167 carry = (ta < carry); in bn_mod_sub_fixed_top()
169 carry += (rp[i] < ta); in bn_mod_sub_fixed_top()
171 borrow -= carry; in bn_mod_sub_fixed_top()
172 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
173 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()
174 carry = (ta < carry); in bn_mod_sub_fixed_top()
176 carry += (rp[i] < ta); in bn_mod_sub_fixed_top()