Lines Matching refs:t2
1660 mp_int q, x, y, t1, t2;
1690 if ((res = mp_init (&t2)) != MP_OKAY) {
1778 t2.dp[0] = (i - 2 < 0) ? 0 : x.dp[i - 2];
1779 t2.dp[1] = (i - 1 < 0) ? 0 : x.dp[i - 1];
1780 t2.dp[2] = x.dp[i];
1781 t2.used = 3;
1782 } while (mp_cmp_mag(&t1, &t2) == MP_GT);
1835 LBL_T2:mp_clear (&t2);
2965 mp_int u1,u2,u3,v1,v2,v3,t1,t2,t3,q,tmp;
2968 if ((err = mp_init_multi(&u1, &u2, &u3, &v1, &v2, &v3, &t1, &t2, &t3, &q, &tmp, NULL)) != MP_OKAY) {
2985 /* (t1,t2,t3) = (u1,u2,u3) - (v1,v2,v3)q */
2989 if ((err = mp_sub(&u2, &tmp, &t2)) != MP_OKAY) { goto _ERR; }
2998 /* (v1,v2,v3) = (t1,t2,t3) */
3000 if ((err = mp_copy(&t2, &v2)) != MP_OKAY) { goto _ERR; }
3017 _ERR: mp_clear_multi(&u1, &u2, &u3, &v1, &v2, &v3, &t1, &t2, &t3, &q, &tmp, NULL);
4213 /* after this x0 is no longer required, free temp [x0==t2]! */
4223 goto X1Y1; /* t2 = y1 - y0 */
4229 goto X1Y1; /* t2 = x0y0 + x1y1 */
4292 mp_int x0, x1, t1, t2, x0x0, x1x1;
4312 if (mp_init_size (&t2, a->used * 2) != MP_OKAY)
4315 goto T2;
4355 if (s_mp_add (&x0x0, &x1x1, &t2) != MP_OKAY)
4356 goto X1X1; /* t2 = x0x0 + x1x1 */
4357 if (s_mp_sub (&t1, &t2, &t1) != MP_OKAY)
4375 T2:mp_clear (&t2);
4412 mp_int t1, t2;
4415 if ((res = mp_init_multi (&t1, &t2, NULL)) != MP_OKAY) {
4426 /* store quotient in t2 such that t2 * b is the LCM */
4427 if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) {
4430 res = mp_mul(b, &t2, c);
4432 /* store quotient in t2 such that t2 * a is the LCM */
4433 if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) {
4436 res = mp_mul(a, &t2, c);
4443 mp_clear_multi (&t1, &t2, NULL);
5317 mp_int t1, t2, t3;
5329 if ((res = mp_init (&t2)) != MP_OKAY) {
5341 /* t2 = 2 */
5342 mp_set (&t2, 2);
5345 /* t1 = t2 */
5346 if ((res = mp_copy (&t2, &t1)) != MP_OKAY) {
5350 /* t2 = t1 - ((t1**b - a) / (b * t1**(b-1))) */
5358 /* t2 = t1**b */
5359 if ((res = mp_mul (&t3, &t1, &t2)) != MP_OKAY) {
5363 /* t2 = t1**b - a */
5364 if ((res = mp_sub (&t2, a, &t2)) != MP_OKAY) {
5375 if ((res = mp_div (&t2, &t3, &t3, NULL)) != MP_OKAY) {
5379 if ((res = mp_sub (&t1, &t3, &t2)) != MP_OKAY) {
5382 } while (mp_cmp (&t1, &t2) != MP_EQ);
5386 if ((res = mp_expt_d (&t1, b, &t2)) != MP_OKAY) {
5390 if (mp_cmp (&t2, a) == MP_GT) {
5411 LBL_T2:mp_clear (&t2);
7392 mp_int t1,t2;
7409 if ((res = mp_init(&t2)) != MP_OKAY) {
7417 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) {
7420 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) {
7428 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) {
7431 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) {
7437 /* t1 >= sqrt(arg) >= t2 at this point */
7438 } while (mp_cmp_mag(&t1,&t2) == MP_GT);
7442 E1: mp_clear(&t2);