Lines Matching refs:MP_OKAY
36 res = MP_OKAY; in mp_div()
45 if ((res = mp_init_multi(&ta, &tb, &tq, &q, NULL) != MP_OKAY)) { in mp_div()
52 if (((res = mp_abs(a, &ta)) != MP_OKAY) || in mp_div()
53 ((res = mp_abs(b, &tb)) != MP_OKAY) || in mp_div()
54 ((res = mp_mul_2d(&tb, n, &tb)) != MP_OKAY) || in mp_div()
55 ((res = mp_mul_2d(&tq, n, &tq)) != MP_OKAY)) { in mp_div()
61 if (((res = mp_sub(&ta, &tb, &ta)) != MP_OKAY) || in mp_div()
62 ((res = mp_add(&q, &tq, &q)) != MP_OKAY)) { in mp_div()
66 if (((res = mp_div_2d(&tb, 1, &tb, NULL)) != MP_OKAY) || in mp_div()
67 ((res = mp_div_2d(&tq, 1, &tq, NULL)) != MP_OKAY)) { in mp_div()
118 res = MP_OKAY; in mp_div()
126 if ((res = mp_init_size (&q, a->used + 2)) != MP_OKAY) { in mp_div()
131 if ((res = mp_init (&t1)) != MP_OKAY) { in mp_div()
135 if ((res = mp_init (&t2)) != MP_OKAY) { in mp_div()
139 if ((res = mp_init_copy (&x, a)) != MP_OKAY) { in mp_div()
143 if ((res = mp_init_copy (&y, b)) != MP_OKAY) { in mp_div()
155 if ((res = mp_mul_2d (&x, norm, &x)) != MP_OKAY) { in mp_div()
158 if ((res = mp_mul_2d (&y, norm, &y)) != MP_OKAY) { in mp_div()
170 if ((res = mp_lshd (&y, n - t)) != MP_OKAY) { /* y = y*b**{n-t} */ in mp_div()
176 if ((res = mp_sub (&x, &y, &x)) != MP_OKAY) { in mp_div()
218 if ((res = mp_mul_d (&t1, q.dp[i - t - 1], &t1)) != MP_OKAY) { in mp_div()
230 if ((res = mp_mul_d (&y, q.dp[i - t - 1], &t1)) != MP_OKAY) { in mp_div()
234 if ((res = mp_lshd (&t1, i - t - 1)) != MP_OKAY) { in mp_div()
238 if ((res = mp_sub (&x, &t1, &x)) != MP_OKAY) { in mp_div()
244 if ((res = mp_copy (&y, &t1)) != MP_OKAY) { in mp_div()
247 if ((res = mp_lshd (&t1, i - t - 1)) != MP_OKAY) { in mp_div()
250 if ((res = mp_add (&x, &t1, &x)) != MP_OKAY) { in mp_div()
272 if ((res = mp_div_2d (&x, norm, &x, NULL)) != MP_OKAY) { in mp_div()
278 res = MP_OKAY; in mp_div()