Home | History | Annotate | Download | only in libmincrypt

Lines Matching full:carry

76   p256_ddigit carry = 0;
79 carry += *c;
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b;
81 *c++ = (p256_digit)carry;
82 carry >>= P256_BITSPERDIGIT;
84 return top + (p256_digit)carry;
132 p256_ddigit carry = 0;
134 carry += *c;
135 carry += P256_DIGIT(MOD, i) & mask;
136 *c++ = (p256_digit)carry;
137 carry >>= P256_BITSPERDIGIT;
139 return top + (p256_digit)carry;
264 // c = a + b. Returns carry: 0 or 1.
267 p256_ddigit carry = 0;
270 carry += (p256_ddigit)P256_DIGIT(a, i) + P256_DIGIT(b, i);
271 if (c) P256_DIGIT(c, i) = (p256_digit)carry;
272 carry >>= P256_BITSPERDIGIT;
274 return (int)carry;
277 // b = a + d. Returns carry, 0 or 1.
280 p256_ddigit carry = d;
283 carry += (p256_ddigit)P256_DIGIT(a, i);
284 if (b) P256_DIGIT(b, i) = (p256_digit)carry;
285 carry >>= P256_BITSPERDIGIT;
287 return (int)carry;