Home | History | Annotate | Download | only in libtommath

Lines Matching defs:x0

49   mp_int  x0, x1, y0, y1, t1, x0y0, x1y1;
62 if (mp_init_size (&x0, B) != MP_OKAY)
65 goto X0;
80 x0.used = y0.used = B;
94 tmpx = x0.dp;
115 mp_clamp (&x0);
119 /* after this x0 is no longer required, free temp [x0==t2]! */
120 if (mp_mul (&x0, &y0, &x0y0) != MP_OKAY)
121 goto X1Y1; /* x0y0 = x0*y0 */
125 /* now calc x1+x0 and y1+y0 */
126 if (s_mp_add (&x1, &x0, &t1) != MP_OKAY)
127 goto X1Y1; /* t1 = x1 - x0 */
128 if (s_mp_add (&y1, &y0, &x0) != MP_OKAY)
130 if (mp_mul (&t1, &x0, &t1) != MP_OKAY)
131 goto X1Y1; /* t1 = (x1 + x0) * (y1 + y0) */
134 if (mp_add (&x0y0, &x1y1, &x0) != MP_OKAY)
136 if (s_mp_sub (&t1, &x0, &t1) != MP_OKAY)
137 goto X1Y1; /* t1 = (x1+x0)*(y1+y0) - (x1y1 + x0y0) */
141 goto X1Y1; /* t1 = (x0y0 + x1y1 - (x1-x0)*(y1-y0))<<B */
159 X0:mp_clear (&x0);