Lines Matching refs:c1
144 BN_ULONG c1 = 0; in bn_mul_add_words() local
147 return c1; in bn_mul_add_words()
151 mul_add(rp[0], ap[0], w, c1); in bn_mul_add_words()
152 mul_add(rp[1], ap[1], w, c1); in bn_mul_add_words()
153 mul_add(rp[2], ap[2], w, c1); in bn_mul_add_words()
154 mul_add(rp[3], ap[3], w, c1); in bn_mul_add_words()
161 mul_add(rp[0], ap[0], w, c1); in bn_mul_add_words()
167 return c1; in bn_mul_add_words()
172 BN_ULONG c1 = 0; in bn_mul_words() local
175 return c1; in bn_mul_words()
179 mul(rp[0], ap[0], w, c1); in bn_mul_words()
180 mul(rp[1], ap[1], w, c1); in bn_mul_words()
181 mul(rp[2], ap[2], w, c1); in bn_mul_words()
182 mul(rp[3], ap[3], w, c1); in bn_mul_words()
188 mul(rp[0], ap[0], w, c1); in bn_mul_words()
193 return c1; in bn_mul_words()
227 #define mul_add_c(a, b, c0, c1, c2) \ argument
234 (c1) += (hi); \
235 (c2) += (c1) < hi; \
238 #define mul_add_c2(a, b, c0, c1, c2) \ argument
245 (c1) += hi; \
246 (c2) += (c1) < hi; \
250 (c1) += hi; \
251 (c2) += (c1) < hi; \
254 #define sqr_add_c(a, i, c0, c1, c2) \ argument
261 (c1) += hi; \
262 (c2) += (c1) < hi; \
265 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
271 #define mul_add_c(a, b, c0, c1, c2) \ argument
278 (c1) += hi; \
279 (c2) += ((c1) < hi) ? 1 : 0; \
282 #define mul_add_c2(a, b, c0, c1, c2) \ argument
289 (c1) += tt; \
290 (c2) += ((c1) < tt) ? 1 : 0; \
293 (c1) += hi; \
294 (c2) += ((c1) < hi) ? 1 : 0; \
297 #define sqr_add_c(a, i, c0, c1, c2) \ argument
304 (c1) += hi; \
305 (c2) += ((c1) < hi) ? 1 : 0; \
308 #define sqr_add_c2(a, i, j, c0, c1, c2) mul_add_c2((a)[i], (a)[j], c0, c1, c2) argument
313 BN_ULONG c1, c2, c3; in bn_mul_comba8() local
315 c1 = 0; in bn_mul_comba8()
318 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba8()
319 r[0] = c1; in bn_mul_comba8()
320 c1 = 0; in bn_mul_comba8()
321 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba8()
322 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba8()
325 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba8()
326 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba8()
327 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba8()
330 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba8()
331 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba8()
332 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba8()
333 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba8()
334 r[3] = c1; in bn_mul_comba8()
335 c1 = 0; in bn_mul_comba8()
336 mul_add_c(a[4], b[0], c2, c3, c1); in bn_mul_comba8()
337 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba8()
338 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba8()
339 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba8()
340 mul_add_c(a[0], b[4], c2, c3, c1); in bn_mul_comba8()
343 mul_add_c(a[0], b[5], c3, c1, c2); in bn_mul_comba8()
344 mul_add_c(a[1], b[4], c3, c1, c2); in bn_mul_comba8()
345 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba8()
346 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba8()
347 mul_add_c(a[4], b[1], c3, c1, c2); in bn_mul_comba8()
348 mul_add_c(a[5], b[0], c3, c1, c2); in bn_mul_comba8()
351 mul_add_c(a[6], b[0], c1, c2, c3); in bn_mul_comba8()
352 mul_add_c(a[5], b[1], c1, c2, c3); in bn_mul_comba8()
353 mul_add_c(a[4], b[2], c1, c2, c3); in bn_mul_comba8()
354 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba8()
355 mul_add_c(a[2], b[4], c1, c2, c3); in bn_mul_comba8()
356 mul_add_c(a[1], b[5], c1, c2, c3); in bn_mul_comba8()
357 mul_add_c(a[0], b[6], c1, c2, c3); in bn_mul_comba8()
358 r[6] = c1; in bn_mul_comba8()
359 c1 = 0; in bn_mul_comba8()
360 mul_add_c(a[0], b[7], c2, c3, c1); in bn_mul_comba8()
361 mul_add_c(a[1], b[6], c2, c3, c1); in bn_mul_comba8()
362 mul_add_c(a[2], b[5], c2, c3, c1); in bn_mul_comba8()
363 mul_add_c(a[3], b[4], c2, c3, c1); in bn_mul_comba8()
364 mul_add_c(a[4], b[3], c2, c3, c1); in bn_mul_comba8()
365 mul_add_c(a[5], b[2], c2, c3, c1); in bn_mul_comba8()
366 mul_add_c(a[6], b[1], c2, c3, c1); in bn_mul_comba8()
367 mul_add_c(a[7], b[0], c2, c3, c1); in bn_mul_comba8()
370 mul_add_c(a[7], b[1], c3, c1, c2); in bn_mul_comba8()
371 mul_add_c(a[6], b[2], c3, c1, c2); in bn_mul_comba8()
372 mul_add_c(a[5], b[3], c3, c1, c2); in bn_mul_comba8()
373 mul_add_c(a[4], b[4], c3, c1, c2); in bn_mul_comba8()
374 mul_add_c(a[3], b[5], c3, c1, c2); in bn_mul_comba8()
375 mul_add_c(a[2], b[6], c3, c1, c2); in bn_mul_comba8()
376 mul_add_c(a[1], b[7], c3, c1, c2); in bn_mul_comba8()
379 mul_add_c(a[2], b[7], c1, c2, c3); in bn_mul_comba8()
380 mul_add_c(a[3], b[6], c1, c2, c3); in bn_mul_comba8()
381 mul_add_c(a[4], b[5], c1, c2, c3); in bn_mul_comba8()
382 mul_add_c(a[5], b[4], c1, c2, c3); in bn_mul_comba8()
383 mul_add_c(a[6], b[3], c1, c2, c3); in bn_mul_comba8()
384 mul_add_c(a[7], b[2], c1, c2, c3); in bn_mul_comba8()
385 r[9] = c1; in bn_mul_comba8()
386 c1 = 0; in bn_mul_comba8()
387 mul_add_c(a[7], b[3], c2, c3, c1); in bn_mul_comba8()
388 mul_add_c(a[6], b[4], c2, c3, c1); in bn_mul_comba8()
389 mul_add_c(a[5], b[5], c2, c3, c1); in bn_mul_comba8()
390 mul_add_c(a[4], b[6], c2, c3, c1); in bn_mul_comba8()
391 mul_add_c(a[3], b[7], c2, c3, c1); in bn_mul_comba8()
394 mul_add_c(a[4], b[7], c3, c1, c2); in bn_mul_comba8()
395 mul_add_c(a[5], b[6], c3, c1, c2); in bn_mul_comba8()
396 mul_add_c(a[6], b[5], c3, c1, c2); in bn_mul_comba8()
397 mul_add_c(a[7], b[4], c3, c1, c2); in bn_mul_comba8()
400 mul_add_c(a[7], b[5], c1, c2, c3); in bn_mul_comba8()
401 mul_add_c(a[6], b[6], c1, c2, c3); in bn_mul_comba8()
402 mul_add_c(a[5], b[7], c1, c2, c3); in bn_mul_comba8()
403 r[12] = c1; in bn_mul_comba8()
404 c1 = 0; in bn_mul_comba8()
405 mul_add_c(a[6], b[7], c2, c3, c1); in bn_mul_comba8()
406 mul_add_c(a[7], b[6], c2, c3, c1); in bn_mul_comba8()
409 mul_add_c(a[7], b[7], c3, c1, c2); in bn_mul_comba8()
411 r[15] = c1; in bn_mul_comba8()
415 BN_ULONG c1, c2, c3; in bn_mul_comba4() local
417 c1 = 0; in bn_mul_comba4()
420 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba4()
421 r[0] = c1; in bn_mul_comba4()
422 c1 = 0; in bn_mul_comba4()
423 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba4()
424 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba4()
427 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba4()
428 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba4()
429 mul_add_c(a[0], b[2], c3, c1, c2); in bn_mul_comba4()
432 mul_add_c(a[0], b[3], c1, c2, c3); in bn_mul_comba4()
433 mul_add_c(a[1], b[2], c1, c2, c3); in bn_mul_comba4()
434 mul_add_c(a[2], b[1], c1, c2, c3); in bn_mul_comba4()
435 mul_add_c(a[3], b[0], c1, c2, c3); in bn_mul_comba4()
436 r[3] = c1; in bn_mul_comba4()
437 c1 = 0; in bn_mul_comba4()
438 mul_add_c(a[3], b[1], c2, c3, c1); in bn_mul_comba4()
439 mul_add_c(a[2], b[2], c2, c3, c1); in bn_mul_comba4()
440 mul_add_c(a[1], b[3], c2, c3, c1); in bn_mul_comba4()
443 mul_add_c(a[2], b[3], c3, c1, c2); in bn_mul_comba4()
444 mul_add_c(a[3], b[2], c3, c1, c2); in bn_mul_comba4()
447 mul_add_c(a[3], b[3], c1, c2, c3); in bn_mul_comba4()
448 r[6] = c1; in bn_mul_comba4()
453 BN_ULONG c1, c2, c3; in bn_sqr_comba8() local
455 c1 = 0; in bn_sqr_comba8()
458 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba8()
459 r[0] = c1; in bn_sqr_comba8()
460 c1 = 0; in bn_sqr_comba8()
461 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba8()
464 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba8()
465 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba8()
468 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba8()
469 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba8()
470 r[3] = c1; in bn_sqr_comba8()
471 c1 = 0; in bn_sqr_comba8()
472 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba8()
473 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba8()
474 sqr_add_c2(a, 4, 0, c2, c3, c1); in bn_sqr_comba8()
477 sqr_add_c2(a, 5, 0, c3, c1, c2); in bn_sqr_comba8()
478 sqr_add_c2(a, 4, 1, c3, c1, c2); in bn_sqr_comba8()
479 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba8()
482 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba8()
483 sqr_add_c2(a, 4, 2, c1, c2, c3); in bn_sqr_comba8()
484 sqr_add_c2(a, 5, 1, c1, c2, c3); in bn_sqr_comba8()
485 sqr_add_c2(a, 6, 0, c1, c2, c3); in bn_sqr_comba8()
486 r[6] = c1; in bn_sqr_comba8()
487 c1 = 0; in bn_sqr_comba8()
488 sqr_add_c2(a, 7, 0, c2, c3, c1); in bn_sqr_comba8()
489 sqr_add_c2(a, 6, 1, c2, c3, c1); in bn_sqr_comba8()
490 sqr_add_c2(a, 5, 2, c2, c3, c1); in bn_sqr_comba8()
491 sqr_add_c2(a, 4, 3, c2, c3, c1); in bn_sqr_comba8()
494 sqr_add_c(a, 4, c3, c1, c2); in bn_sqr_comba8()
495 sqr_add_c2(a, 5, 3, c3, c1, c2); in bn_sqr_comba8()
496 sqr_add_c2(a, 6, 2, c3, c1, c2); in bn_sqr_comba8()
497 sqr_add_c2(a, 7, 1, c3, c1, c2); in bn_sqr_comba8()
500 sqr_add_c2(a, 7, 2, c1, c2, c3); in bn_sqr_comba8()
501 sqr_add_c2(a, 6, 3, c1, c2, c3); in bn_sqr_comba8()
502 sqr_add_c2(a, 5, 4, c1, c2, c3); in bn_sqr_comba8()
503 r[9] = c1; in bn_sqr_comba8()
504 c1 = 0; in bn_sqr_comba8()
505 sqr_add_c(a, 5, c2, c3, c1); in bn_sqr_comba8()
506 sqr_add_c2(a, 6, 4, c2, c3, c1); in bn_sqr_comba8()
507 sqr_add_c2(a, 7, 3, c2, c3, c1); in bn_sqr_comba8()
510 sqr_add_c2(a, 7, 4, c3, c1, c2); in bn_sqr_comba8()
511 sqr_add_c2(a, 6, 5, c3, c1, c2); in bn_sqr_comba8()
514 sqr_add_c(a, 6, c1, c2, c3); in bn_sqr_comba8()
515 sqr_add_c2(a, 7, 5, c1, c2, c3); in bn_sqr_comba8()
516 r[12] = c1; in bn_sqr_comba8()
517 c1 = 0; in bn_sqr_comba8()
518 sqr_add_c2(a, 7, 6, c2, c3, c1); in bn_sqr_comba8()
521 sqr_add_c(a, 7, c3, c1, c2); in bn_sqr_comba8()
523 r[15] = c1; in bn_sqr_comba8()
527 BN_ULONG c1, c2, c3; in bn_sqr_comba4() local
529 c1 = 0; in bn_sqr_comba4()
532 sqr_add_c(a, 0, c1, c2, c3); in bn_sqr_comba4()
533 r[0] = c1; in bn_sqr_comba4()
534 c1 = 0; in bn_sqr_comba4()
535 sqr_add_c2(a, 1, 0, c2, c3, c1); in bn_sqr_comba4()
538 sqr_add_c(a, 1, c3, c1, c2); in bn_sqr_comba4()
539 sqr_add_c2(a, 2, 0, c3, c1, c2); in bn_sqr_comba4()
542 sqr_add_c2(a, 3, 0, c1, c2, c3); in bn_sqr_comba4()
543 sqr_add_c2(a, 2, 1, c1, c2, c3); in bn_sqr_comba4()
544 r[3] = c1; in bn_sqr_comba4()
545 c1 = 0; in bn_sqr_comba4()
546 sqr_add_c(a, 2, c2, c3, c1); in bn_sqr_comba4()
547 sqr_add_c2(a, 3, 1, c2, c3, c1); in bn_sqr_comba4()
550 sqr_add_c2(a, 3, 2, c3, c1, c2); in bn_sqr_comba4()
553 sqr_add_c(a, 3, c1, c2, c3); in bn_sqr_comba4()
554 r[6] = c1; in bn_sqr_comba4()