Lines Matching refs:in2
487 static void felem_mul(largefelem out, const felem in1, const felem in2)
490 felem_scalar(in2x2, in2, 2);
492 out[0] = ((uint128_t) in1[0]) * in2[0];
494 out[1] = ((uint128_t) in1[0]) * in2[1] +
495 ((uint128_t) in1[1]) * in2[0];
497 out[2] = ((uint128_t) in1[0]) * in2[2] +
498 ((uint128_t) in1[1]) * in2[1] +
499 ((uint128_t) in1[2]) * in2[0];
501 out[3] = ((uint128_t) in1[0]) * in2[3] +
502 ((uint128_t) in1[1]) * in2[2] +
503 ((uint128_t) in1[2]) * in2[1] +
504 ((uint128_t) in1[3]) * in2[0];
506 out[4] = ((uint128_t) in1[0]) * in2[4] +
507 ((uint128_t) in1[1]) * in2[3] +
508 ((uint128_t) in1[2]) * in2[2] +
509 ((uint128_t) in1[3]) * in2[1] +
510 ((uint128_t) in1[4]) * in2[0];
512 out[5] = ((uint128_t) in1[0]) * in2[5] +
513 ((uint128_t) in1[1]) * in2[4] +
514 ((uint128_t) in1[2]) * in2[3] +
515 ((uint128_t) in1[3]) * in2[2] +
516 ((uint128_t) in1[4]) * in2[1] +
517 ((uint128_t) in1[5]) * in2[0];
519 out[6] = ((uint128_t) in1[0]) * in2[6] +
520 ((uint128_t) in1[1]) * in2[5] +
521 ((uint128_t) in1[2]) * in2[4] +
522 ((uint128_t) in1[3]) * in2[3] +
523 ((uint128_t) in1[4]) * in2[2] +
524 ((uint128_t) in1[5]) * in2[1] +
525 ((uint128_t) in1[6]) * in2[0];
527 out[7] = ((uint128_t) in1[0]) * in2[7] +
528 ((uint128_t) in1[1]) * in2[6] +
529 ((uint128_t) in1[2]) * in2[5] +
530 ((uint128_t) in1[3]) * in2[4] +
531 ((uint128_t) in1[4]) * in2[3] +
532 ((uint128_t) in1[5]) * in2[2] +
533 ((uint128_t) in1[6]) * in2[1] +
534 ((uint128_t) in1[7]) * in2[0];
536 out[8] = ((uint128_t) in1[0]) * in2[8] +
537 ((uint128_t) in1[1]) * in2[7] +
538 ((uint128_t) in1[2]) * in2[6] +
539 ((uint128_t) in1[3]) * in2[5] +
540 ((uint128_t) in1[4]) * in2[4] +
541 ((uint128_t) in1[5]) * in2[3] +
542 ((uint128_t) in1[6]) * in2[2] +
543 ((uint128_t) in1[7]) * in2[1] +
544 ((uint128_t) in1[8]) * in2[0];
684 static void felem_mul_reduce(felem out, const felem in1, const felem in2)
687 felem_mul(tmp, in1, in2);