Home
last modified time | relevance | path

Searched refs:MP_NEG (Results 1 – 25 of 30) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_sub_d.c35 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()
Dbn_mp_cmp.c24 if (a->sign == MP_NEG) { in mp_cmp()
32 if (a->sign == MP_NEG) { in mp_cmp()
Dbn_mp_radix_size.c29 *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()
Dbn_mp_add_d.c33 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()
Dbn_mp_exptmod.c29 if (P->sign == MP_NEG) { in mp_exptmod()
34 if (X->sign == MP_NEG) { in mp_exptmod()
Dbn_mp_div.c74 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()
Dbn_mp_cmp_d.c22 if (a->sign == MP_NEG) { in mp_cmp_d()
Dbn_mp_read_signed_bin.c32 a->sign = MP_NEG; in mp_read_signed_bin()
Dbn_mp_invmod.c22 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod()
Dbn_mp_neg.c29 b->sign = (a->sign == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_neg()
Dbn_mp_sub.c47 c->sign = (sa == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_sub()
Dbn_mp_fread.c29 neg = MP_NEG; in mp_fread()
Dbn_mp_read_radix.c37 neg = MP_NEG; in mp_read_radix()
Dbn_mp_toradix.c43 if (t.sign == MP_NEG) { in mp_toradix()
Dbn_mp_toradix_n.c46 if (t.sign == MP_NEG) { in mp_toradix_n()
Dbn_mp_mul.c22 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_mul()
Dbn_mp_is_square.c51 if (arg->sign == MP_NEG) { in mp_is_square()
Dbn_mp_sqrt.c25 if (arg->sign == MP_NEG) { in mp_sqrt()
Dbn_mp_n_root.c34 if ((b & 1) == 0 && a->sign == MP_NEG) { in mp_n_root()
/external/dropbear/libtommath/mtest/
Dmpi.c517 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 …]
Dmpi.h33 #define MP_NEG 1 macro
37 #define NEG MP_NEG
/external/dropbear/libtommath/pre_gen/
Dmpi.c184 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 …]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c88 #define MP_NEG 1 /* negative */ macro
470 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 …]
/external/wpa_supplicant_8/src/tls/
Dlibtommath.c88 #define MP_NEG 1 /* negative */ macro
470 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 …]
/external/dropbear/libtommath/etc/
Dmersenne.c46 while (u.sign == MP_NEG) { in is_mersenne()

12