Lines Matching refs:X0
120 memset(a->dp, 0x0, a->alloc * sizeof(*a->dp));
149 memset(&a->dp[a->alloc], 0x0, (size - a->alloc) * sizeof(*a->dp));
192 memset(a->dp, 0x0, b * sizeof(*a->dp));
241 memset(&b->dp[a->used], 0x0, (b->used - a->used) * sizeof(*b->dp));
432 memset(a->dp, 0x0, MP_PREC * sizeof(*a->dp));
449 memset(a->dp, 0x0, a->used * sizeof(*a->dp));
517 memset(a->dp, 0x0, size * sizeof(*a->dp));
613 memset(tmpc, 0x0, (olduse - c->used) * sizeof(*c->dp));
680 memset(tmpc, 0x0, (olduse - c->used) * sizeof(*a->dp));
751 memset(&a->dp[a->used - b], 0x0, b * sizeof(*a->dp));
804 memset(tmpc, 0x0, (olduse - ix) * sizeof(*tmpc));
2097 mp_int x0, x1, y0, y1, t1, x0y0, x1y1;
2111 if (mp_init_size(&x0, B) != MP_OKAY) {
2115 goto X0;
2134 x0.used = y0.used = B;
2148 tmpx = x0.dp;
2169 trim_unused_digits(&x0);
2173 /* after this x0 is no longer required, free temp [x0==t2]! */
2174 if (signed_multiply(&x0, &y0, &x0y0) != MP_OKAY) {
2175 goto X1Y1; /* x0y0 = x0*y0 */
2180 /* now calc x1+x0 and y1+y0 */
2181 if (basic_add(&x1, &x0, &t1) != MP_OKAY) {
2182 goto X1Y1; /* t1 = x1 - x0 */
2184 if (basic_add(&y1, &y0, &x0) != MP_OKAY) {
2187 if (signed_multiply(&t1, &x0, &t1) != MP_OKAY) {
2188 goto X1Y1; /* t1 = (x1 + x0) * (y1 + y0) */
2191 if (signed_add(&x0y0, &x1y1, &x0) != MP_OKAY) {
2194 if (basic_subtract(&t1, &x0, &t1) != MP_OKAY) {
2195 goto X1Y1; /* t1 = (x1+x0)*(y1+y0) - (x1y1 + x0y0) */
2199 goto X1Y1; /* t1 = (x0y0 + x1y1 - (x1-x0)*(y1-y0))<<B */
2225 X0:
2226 mp_clear(&x0);
2942 mp_int x0, x1, t1, t2, x0x0, x1x1;
2954 if (mp_init_size(&x0, B) != MP_OKAY) {
2958 goto X0;
2974 memcpy(x0.dp, a->dp, B * sizeof(*x0.dp));
2977 x0.used = B;
2980 trim_unused_digits(&x0);
2982 /* now calc the products x0*x0 and x1*x1 */
2983 if (square(&x0, &x0x0) != MP_OKAY) {
2984 goto X1X1; /* x0x0 = x0*x0 */
2989 /* now calc (x1+x0)**2 */
2990 if (basic_add(&x1, &x0, &t1) != MP_OKAY) {
2991 goto X1X1; /* t1 = x1 - x0 */
2994 goto X1X1; /* t1 = (x1 - x0) * (x1 - x0) */
3001 goto X1X1; /* t1 = (x1+x0)**2 - (x0x0 + x1x1) */
3005 goto X1X1; /* t1 = (x0x0 + x1x1 - (x1-x0)*(x1-x0))<<B */
3028 X0:
3029 mp_clear(&x0);