Home | History | Annotate | Download | only in libtommath

Lines Matching refs:t2

30   mp_int  t1, t2, t3;
42 if ((res = mp_init (&t2)) != MP_OKAY) {
54 /* t2 = 2 */
55 mp_set (&t2, 2);
58 /* t1 = t2 */
59 if ((res = mp_copy (&t2, &t1)) != MP_OKAY) {
63 /* t2 = t1 - ((t1**b - a) / (b * t1**(b-1))) */
71 /* t2 = t1**b */
72 if ((res = mp_mul (&t3, &t1, &t2)) != MP_OKAY) {
76 /* t2 = t1**b - a */
77 if ((res = mp_sub (&t2, a, &t2)) != MP_OKAY) {
88 if ((res = mp_div (&t2, &t3, &t3, NULL)) != MP_OKAY) {
92 if ((res = mp_sub (&t1, &t3, &t2)) != MP_OKAY) {
95 } while (mp_cmp (&t1, &t2) != MP_EQ);
99 if ((res = mp_expt_d (&t1, b, &t2)) != MP_OKAY) {
103 if (mp_cmp (&t2, a) == MP_GT) {
124 LBL_T2:mp_clear (&t2);