Lines Matching refs:top
73 p256_digit top, in mulAdd() argument
84 return top + (p256_digit)carry; in mulAdd()
111 p256_digit top, in subM() argument
122 return top + (p256_digit)borrow; in subM()
128 p256_digit top, in addM() argument
139 return top + (p256_digit)carry; in addM()
149 p256_digit top = 0; in p256_modmul() local
154 if (i) tmp[i + P256_NDIGITS - 1] = top; in p256_modmul()
155 top = mulAdd(a, P256_DIGIT(b, i), 0, tmp + i); in p256_modmul()
159 tmp[i + P256_NDIGITS - 1] = top; in p256_modmul()
160 top = mulAdd(a, top_b, 0, tmp + i); in p256_modmul()
169 top_reducer = mulAdd(MOD, top, 0, reducer); in p256_modmul()
172 top = subTop(top_reducer, reducer, top, tmp + i); in p256_modmul()
175 assert(top <= 1); in p256_modmul()
177 top = subM(MOD, top, tmp + i, ~(top - 1)); in p256_modmul()
179 assert(top == 0); in p256_modmul()
182 top = tmp[i + P256_NDIGITS - 1]; in p256_modmul()
196 p256_digit top = P256_DIGIT(a, P256_NDIGITS - 1); in p256_shl() local
206 top = (p256_digit)((((p256_ddigit)top) << n) >> P256_BITSPERDIGIT); in p256_shl()
208 return top; in p256_shl()