Lines Matching refs:T1
986 mp_int q, x, y, t1, t2;
1012 if ((res = mp_init(&t1)) != MP_OKAY) {
1095 mp_zero(&t1);
1096 t1.dp[0] = (t - 1 < 0) ? 0 : y.dp[t - 1];
1097 t1.dp[1] = y.dp[t];
1098 t1.used = 2;
1099 if ((res = multiply_digit(&t1, q.dp[i - t - 1], &t1)) != MP_OKAY) {
1108 } while (compare_magnitude(&t1, &t2) == MP_GT);
1111 if ((res = multiply_digit(&y, q.dp[i - t - 1], &t1)) != MP_OKAY) {
1115 if ((res = lshift_digits(&t1, i - t - 1)) != MP_OKAY) {
1119 if ((res = signed_subtract(&x, &t1, &x)) != MP_OKAY) {
1125 if ((res = mp_copy(&y, &t1)) != MP_OKAY) {
1128 if ((res = lshift_digits(&t1, i - t - 1)) != MP_OKAY) {
1131 if ((res = signed_add(&x, &t1, &x)) != MP_OKAY) {
1166 mp_clear(&t1);
2097 mp_int x0, x1, y0, y1, t1, x0y0, x1y1;
2124 if (mp_init_size(&t1, B * 2) != MP_OKAY) {
2128 goto T1;
2181 if (basic_add(&x1, &x0, &t1) != MP_OKAY) {
2182 goto X1Y1; /* t1 = x1 - x0 */
2187 if (signed_multiply(&t1, &x0, &t1) != MP_OKAY) {
2188 goto X1Y1; /* t1 = (x1 + x0) * (y1 + y0) */
2194 if (basic_subtract(&t1, &x0, &t1) != MP_OKAY) {
2195 goto X1Y1; /* t1 = (x1+x0)*(y1+y0) - (x1y1 + x0y0) */
2198 if (lshift_digits(&t1, B) != MP_OKAY) {
2199 goto X1Y1; /* t1 = (x0y0 + x1y1 - (x1-x0)*(y1-y0))<<B */
2204 if (signed_add(&x0y0, &t1, &t1) != MP_OKAY) {
2205 goto X1Y1; /* t1 = x0y0 + t1 */
2207 if (signed_add(&t1, &x1y1, c) != MP_OKAY) {
2208 goto X1Y1; /* t1 = x0y0 + t1 + x1y1 */
2217 T1:
2218 mp_clear(&t1);
2942 mp_int x0, x1, t1, t2, x0x0, x1x1;
2961 if (mp_init_size(&t1, a->used * 2) != MP_OKAY) {
2965 goto T1;
2990 if (basic_add(&x1, &x0, &t1) != MP_OKAY) {
2991 goto X1X1; /* t1 = x1 - x0 */
2993 if (square(&t1, &t1) != MP_OKAY) {
2994 goto X1X1; /* t1 = (x1 - x0) * (x1 - x0) */
3000 if (basic_subtract(&t1, &t2, &t1) != MP_OKAY) {
3001 goto X1X1; /* t1 = (x1+x0)**2 - (x0x0 + x1x1) */
3004 if (lshift_digits(&t1, B) != MP_OKAY) {
3005 goto X1X1; /* t1 = (x0x0 + x1x1 - (x1-x0)*(x1-x0))<<B */
3010 if (signed_add(&x0x0, &t1, &t1) != MP_OKAY) {
3011 goto X1X1; /* t1t1 */
3013 if (signed_add(&t1, &x1x1, b) != MP_OKAY) {
3014 goto X1X1; /* t1 = x0x0 + t1 + x1x1 */
3024 T1:
3025 mp_clear(&t1);