Searched refs:MP_YES (Results 1 – 22 of 22) sorted by relevance
26 return MP_YES; in mp_reduce_is_2k_l()34 return (iy >= (a->used/2)) ? MP_YES : MP_NO; in mp_reduce_is_2k_l()
27 return MP_YES; in mp_reduce_is_2k()45 return MP_YES; in mp_reduce_is_2k()
52 if (res == MP_YES) { in mp_prime_is_prime()75 *result = MP_YES; in mp_prime_is_prime()
25 if (mp_iszero (a) == MP_YES) { in mp_gcd()28 if (mp_iszero (b) == MP_YES) { in mp_gcd()
147 #define MP_YES 1 /* yes response */ macro221 #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO)222 #define mp_iseven(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO)223 #define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO)
39 *result = MP_YES; in mp_prime_is_divisible()
28 if (mp_iszero(b) != MP_YES) { in mp_neg()
51 *result = MP_YES; in mp_prime_fermat()
38 if (mp_iszero(a) == MP_YES) { in mp_radix_size()
35 if (mp_iszero(a) == MP_YES) { in mp_toradix_n()
101 *ret = (mp_cmp_mag(&t,arg) == MP_EQ) ? MP_YES : MP_NO; in mp_is_square()
30 if (mp_iszero(arg) == MP_YES) { in mp_sqrt()
77 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()81 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
93 *result = MP_YES; in mp_prime_miller_rabin()
70 if (mp_reduce_is_2k_l(P) == MP_YES) { in mp_exptmod()
155 if (res == MP_YES) { in mp_prime_next_prime()
1632 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()1636 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()2571 if (mp_reduce_is_2k_l(P) == MP_YES) { in mp_exptmod()3180 if (mp_iszero (a) == MP_YES) { in mp_gcd()3183 if (mp_iszero (b) == MP_YES) { in mp_gcd()3973 *ret = (mp_cmp_mag(&t,arg) == MP_EQ) ? MP_YES : MP_NO; in mp_is_square()5451 if (mp_iszero(b) != MP_YES) { in mp_neg()5572 *result = MP_YES; in mp_prime_fermat()5626 *result = MP_YES; in mp_prime_is_divisible()5693 if (res == MP_YES) { in mp_prime_is_prime()[all …]
71 #define MP_YES 1 /* yes response */ macro99 #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO)100 #define mp_iseven(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO)101 #define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO)585 if (mp_reduce_is_2k_l(P) == MP_YES) { in mp_exptmod()1592 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()1596 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
94 #define MP_YES 1 /* yes response */ macro122 #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO)123 #define mp_iseven(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO)124 #define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO)629 if (mp_reduce_is_2k_l(P) == MP_YES) { in mp_exptmod()1650 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()1654 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
41 #define MP_YES 0 /* yes (boolean result) */ macro
391 *b = (*b == MP_YES) ? LTC_MP_YES : LTC_MP_NO; in isprime()
214 if (cnt != MP_YES) { in main()