Lines Matching refs:widelimb
77 typedef uint128_t widelimb; typedef
80 typedef widelimb widefelem[7];
417 static const widelimb two120 = ((widelimb) 1) << 120; in widefelem_diff()
418 static const widelimb two120m64 = (((widelimb) 1) << 120) - in widefelem_diff()
419 (((widelimb) 1) << 64); in widefelem_diff()
420 static const widelimb two120m104m64 = (((widelimb) 1) << 120) - in widefelem_diff()
421 (((widelimb) 1) << 104) - (((widelimb) 1) << 64); in widefelem_diff()
445 static const widelimb two64p8 = (((widelimb) 1) << 64) + in felem_diff_128_64()
446 (((widelimb) 1) << 8); in felem_diff_128_64()
447 static const widelimb two64m8 = (((widelimb) 1) << 64) - in felem_diff_128_64()
448 (((widelimb) 1) << 8); in felem_diff_128_64()
449 static const widelimb two64m48m8 = (((widelimb) 1) << 64) - in felem_diff_128_64()
450 (((widelimb) 1) << 48) - (((widelimb) 1) << 8); in felem_diff_128_64()
480 static void widefelem_scalar(widefelem out, const widelimb scalar) in widefelem_scalar()
498 out[0] = ((widelimb) in[0]) * in[0]; in felem_square()
499 out[1] = ((widelimb) in[0]) * tmp1; in felem_square()
500 out[2] = ((widelimb) in[0]) * tmp2 + ((widelimb) in[1]) * in[1]; in felem_square()
501 out[3] = ((widelimb) in[3]) * tmp0 + ((widelimb) in[1]) * tmp2; in felem_square()
502 out[4] = ((widelimb) in[3]) * tmp1 + ((widelimb) in[2]) * in[2]; in felem_square()
503 out[5] = ((widelimb) in[3]) * tmp2; in felem_square()
504 out[6] = ((widelimb) in[3]) * in[3]; in felem_square()
510 out[0] = ((widelimb) in1[0]) * in2[0]; in felem_mul()
511 out[1] = ((widelimb) in1[0]) * in2[1] + ((widelimb) in1[1]) * in2[0]; in felem_mul()
512 out[2] = ((widelimb) in1[0]) * in2[2] + ((widelimb) in1[1]) * in2[1] + in felem_mul()
513 ((widelimb) in1[2]) * in2[0]; in felem_mul()
514 out[3] = ((widelimb) in1[0]) * in2[3] + ((widelimb) in1[1]) * in2[2] + in felem_mul()
515 ((widelimb) in1[2]) * in2[1] + ((widelimb) in1[3]) * in2[0]; in felem_mul()
516 out[4] = ((widelimb) in1[1]) * in2[3] + ((widelimb) in1[2]) * in2[2] + in felem_mul()
517 ((widelimb) in1[3]) * in2[1]; in felem_mul()
518 out[5] = ((widelimb) in1[2]) * in2[3] + ((widelimb) in1[3]) * in2[2]; in felem_mul()
519 out[6] = ((widelimb) in1[3]) * in2[3]; in felem_mul()
528 static const widelimb two127p15 = (((widelimb) 1) << 127) + in felem_reduce()
529 (((widelimb) 1) << 15); in felem_reduce()
530 static const widelimb two127m71 = (((widelimb) 1) << 127) - in felem_reduce()
531 (((widelimb) 1) << 71); in felem_reduce()
532 static const widelimb two127m71m55 = (((widelimb) 1) << 127) - in felem_reduce()
533 (((widelimb) 1) << 71) - (((widelimb) 1) << 55); in felem_reduce()
534 widelimb output[5]; in felem_reduce()