Lines Matching refs:borrow
93 p256_sddigit borrow = 0;
96 borrow += *c;
97 borrow -= *a++;
98 *c++ = (p256_digit)borrow;
99 borrow >>= P256_BITSPERDIGIT;
101 borrow += top_c;
102 borrow -= top_a;
103 top_c = (p256_digit)borrow;
104 assert((borrow >> P256_BITSPERDIGIT) == 0);
115 p256_sddigit borrow = 0;
117 borrow += *c;
118 borrow -= P256_DIGIT(MOD, i) & mask;
119 *c++ = (p256_digit)borrow;
120 borrow >>= P256_BITSPERDIGIT;
122 return top + (p256_digit)borrow;
238 p256_sddigit borrow = 0;
242 borrow += (p256_sddigit)P256_DIGIT(a, i) - P256_DIGIT(b, i);
245 notzero |= !!((p256_digit)borrow);
246 borrow >>= P256_BITSPERDIGIT;
248 return (int)borrow | notzero;
251 // c = a - b. Returns borrow: 0 or -1.
254 p256_sddigit borrow = 0;
257 borrow += (p256_sddigit)P256_DIGIT(a, i) - P256_DIGIT(b, i);
258 if (c) P256_DIGIT(c, i) = (p256_digit)borrow;
259 borrow >>= P256_BITSPERDIGIT;
261 return (int)borrow;