Searched refs:MP_NEG (Results 1 – 25 of 30) sorted by relevance
12
35 if (a->sign == MP_NEG) { in mp_sub_d()38 a->sign = c->sign = MP_NEG; in mp_sub_d()61 c->sign = MP_NEG; in mp_sub_d()
24 if (a->sign == MP_NEG) { in mp_cmp()32 if (a->sign == MP_NEG) { in mp_cmp()
29 *size = mp_count_bits (a) + (a->sign == MP_NEG ? 1 : 0) + 1; in mp_radix_size()47 if (a->sign == MP_NEG) { in mp_radix_size()
33 if (a->sign == MP_NEG && (a->used > 1 || a->dp[0] >= b)) { in mp_add_d()41 a->sign = c->sign = MP_NEG; in mp_add_d()
29 if (P->sign == MP_NEG) { in mp_exptmod()34 if (X->sign == MP_NEG) { in mp_exptmod()
74 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()148 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_div()243 if (x.sign == MP_NEG) { in mp_div()
22 if (a->sign == MP_NEG) { in mp_cmp_d()
32 a->sign = MP_NEG; in mp_read_signed_bin()
22 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod()
29 b->sign = (a->sign == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_neg()
47 c->sign = (sa == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_sub()
29 neg = MP_NEG; in mp_fread()
37 neg = MP_NEG; in mp_read_radix()
43 if (t.sign == MP_NEG) { in mp_toradix()
46 if (t.sign == MP_NEG) { in mp_toradix_n()
22 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_mul()
51 if (arg->sign == MP_NEG) { in mp_is_square()
25 if (arg->sign == MP_NEG) { in mp_sqrt()
34 if ((b & 1) == 0 && a->sign == MP_NEG) { in mp_n_root()
517 SIGN(mp) = MP_NEG; in mp_set_int()580 if(SIGN(b) == MP_NEG) { in mp_sub_d()592 SIGN(b) = MP_NEG; in mp_sub_d()847 SIGN(b) = (SIGN(b) == MP_NEG) ? MP_ZPOS : MP_NEG; in mp_neg()1056 sgn = (SIGN(a) == SIGN(b)) ? MP_ZPOS : MP_NEG; in mp_mul()1176 SIGN(q) = MP_NEG; in mp_div()1201 SIGN(&qtmp) = MP_NEG; /* Sq = MP_NEG if Sa != Sb */ in mp_div()1360 if(SIGN(m) == MP_NEG) in mp_mod()1380 if(SIGN(c) == MP_NEG) { in mp_mod()1425 if(SIGN(a) == MP_NEG) in mp_mod_d()[all …]
33 #define MP_NEG 1 macro37 #define NEG MP_NEG
184 while (D.sign == MP_NEG) { in fast_mp_invmod()900 if (a->sign == MP_NEG && (a->used > 1 || a->dp[0] >= b)) { in mp_add_d()908 a->sign = c->sign = MP_NEG; in mp_add_d()1247 if (a->sign == MP_NEG) { in mp_cmp()1255 if (a->sign == MP_NEG) { in mp_cmp()1292 if (a->sign == MP_NEG) { in mp_cmp_d()1629 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()1703 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_div()1798 if (x.sign == MP_NEG) { in mp_div()2530 if (P->sign == MP_NEG) { in mp_exptmod()[all …]
88 #define MP_NEG 1 /* negative */ macro470 c->sign = (sa == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_sub()483 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_mul()583 if (P->sign == MP_NEG) { in mp_exptmod()588 if (X->sign == MP_NEG) { in mp_exptmod()674 if (a->sign == MP_NEG) { in mp_cmp()682 if (a->sign == MP_NEG) { in mp_cmp()695 if (a->sign == MP_NEG) { in mp_cmp_d()720 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod()761 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod_slow()[all …]
46 while (u.sign == MP_NEG) { in is_mersenne()