Home | History | Annotate | Download | only in libtommath

Lines Matching defs:v3

23    mp_int u1,u2,u3,v1,v2,v3,t1,t2,t3,q,tmp;
26 if ((err = mp_init_multi(&u1, &u2, &u3, &v1, &v2, &v3, &t1, &t2, &t3, &q, &tmp, NULL)) != MP_OKAY) {
34 /* initialize, (v1,v2,v3) = (0,1,b) */
36 if ((err = mp_copy(b, &v3)) != MP_OKAY) { goto _ERR; }
38 /* loop while v3 != 0 */
39 while (mp_iszero(&v3) == MP_NO) {
40 /* q = u3/v3 */
41 if ((err = mp_div(&u3, &v3, &q, NULL)) != MP_OKAY) { goto _ERR; }
43 /* (t1,t2,t3) = (u1,u2,u3) - (v1,v2,v3)q */
48 if ((err = mp_mul(&v3, &q, &tmp)) != MP_OKAY) { goto _ERR; }
51 /* (u1,u2,u3) = (v1,v2,v3) */
54 if ((err = mp_copy(&v3, &u3)) != MP_OKAY) { goto _ERR; }
56 /* (v1,v2,v3) = (t1,t2,t3) */
59 if ((err = mp_copy(&t3, &v3)) != MP_OKAY) { goto _ERR; }
75 _ERR: mp_clear_multi(&u1, &u2, &u3, &v1, &v2, &v3, &t1, &t2, &t3, &q, &tmp, NULL);