Lines Matching refs:carry
76 p256_ddigit carry = 0; in mulAdd() local
79 carry += *c; in mulAdd()
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd()
81 *c++ = (p256_digit)carry; in mulAdd()
82 carry >>= P256_BITSPERDIGIT; in mulAdd()
84 return top + (p256_digit)carry; in mulAdd()
132 p256_ddigit carry = 0; in addM() local
134 carry += *c; in addM()
135 carry += P256_DIGIT(MOD, i) & mask; in addM()
136 *c++ = (p256_digit)carry; in addM()
137 carry >>= P256_BITSPERDIGIT; in addM()
139 return top + (p256_digit)carry; in addM()
267 p256_ddigit carry = 0; in p256_add() local
270 carry += (p256_ddigit)P256_DIGIT(a, i) + P256_DIGIT(b, i); in p256_add()
271 if (c) P256_DIGIT(c, i) = (p256_digit)carry; in p256_add()
272 carry >>= P256_BITSPERDIGIT; in p256_add()
274 return (int)carry; in p256_add()
280 p256_ddigit carry = d; in p256_add_d() local
283 carry += (p256_ddigit)P256_DIGIT(a, i); in p256_add_d()
284 if (b) P256_DIGIT(b, i) = (p256_digit)carry; in p256_add_d()
285 carry >>= P256_BITSPERDIGIT; in p256_add_d()
287 return (int)carry; in p256_add_d()