Lines Matching refs:MP_OKAY
16 if ((res = mp_init (&n)) != MP_OKAY) {
20 if ((res = mp_init (&u)) != MP_OKAY) {
25 if ((res = mp_2expt(&n, s)) != MP_OKAY) {
28 if ((res = mp_sub_d (&n, 1, &n)) != MP_OKAY) {
38 if ((res = mp_sqr (&u, &u)) != MP_OKAY) {
41 if ((res = mp_sub_d (&u, 2, &u)) != MP_OKAY) {
47 if ((res = mp_add (&u, &n, &u)) != MP_OKAY) {
53 if ((res = mp_reduce_2k (&u, &n, 1)) != MP_OKAY) {
64 res = MP_OKAY;
118 if (is_mersenne (k, &pp) != MP_OKAY) {