Lines Matching refs:carry
53 BN_ULONG carry, temp, mask, *rp, *tp = storage; in bn_mod_add_fixed_top() local
70 for (i = 0, ai = 0, bi = 0, carry = 0; i < mtop;) { in bn_mod_add_fixed_top()
72 temp = ((ap[ai] & mask) + carry) & BN_MASK2; in bn_mod_add_fixed_top()
73 carry = (temp < carry); in bn_mod_add_fixed_top()
77 carry += (tp[i] < temp); in bn_mod_add_fixed_top()
84 carry -= bn_sub_words(rp, tp, m->d, mtop); in bn_mod_add_fixed_top()
86 rp[i] = (carry & tp[i]) | (~carry & rp[i]); in bn_mod_add_fixed_top()
136 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local
161 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
162 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()
163 carry = (ta < carry); in bn_mod_sub_fixed_top()
165 carry += (rp[i] < ta); in bn_mod_sub_fixed_top()
167 borrow -= carry; in bn_mod_sub_fixed_top()
168 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
169 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()
170 carry = (ta < carry); in bn_mod_sub_fixed_top()
172 carry += (rp[i] < ta); in bn_mod_sub_fixed_top()