Home
last modified time | relevance | path

Searched refs:MP_ZPOS (Results 1 – 25 of 32) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_neg.c29 b->sign = (a->sign == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_neg()
31 b->sign = MP_ZPOS; in mp_neg()
Dbn_mp_div.c74 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()
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()
148 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_div()
149 x.sign = y.sign = MP_ZPOS; in mp_div()
263 x.sign = x.used == 0 ? MP_ZPOS : a->sign; in mp_div()
Dbn_mp_add_d.c35 a->sign = MP_ZPOS; in mp_add_d()
53 c->sign = MP_ZPOS; in mp_add_d()
62 if (a->sign == MP_ZPOS) { in mp_add_d()
Dbn_mp_sub.c47 c->sign = (sa == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_sub()
Dbn_mp_mul.c22 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_mul()
59 c->sign = (c->used > 0) ? neg : MP_ZPOS; in mp_mul()
Dbn_mp_sub_d.c36 a->sign = MP_ZPOS; in mp_sub_d()
65 c->sign = MP_ZPOS; in mp_sub_d()
Dbn_mp_gcd.c42 u.sign = v.sign = MP_ZPOS; in mp_gcd()
95 c->sign = MP_ZPOS; in mp_gcd()
Dbn_mp_to_signed_bin.c26 b[0] = (unsigned char) ((a->sign == MP_ZPOS) ? 0 : 1); in mp_to_signed_bin()
Dbn_mp_clamp.c37 a->sign = MP_ZPOS; in mp_clamp()
Dbn_mp_abs.c35 b->sign = MP_ZPOS; in mp_abs()
Dbn_mp_zero.c24 a->sign = MP_ZPOS; in mp_zero()
Dbn_mp_read_signed_bin.c30 a->sign = MP_ZPOS; in mp_read_signed_bin()
Dbn_mp_clear.c40 a->sign = MP_ZPOS; in mp_clear()
Dbn_mp_init.c38 a->sign = MP_ZPOS; in mp_init()
Dbn_mp_init_size.c35 a->sign = MP_ZPOS; in mp_init_size()
Dbn_mp_sqr.c51 b->sign = MP_ZPOS; in mp_sqr()
Dbn_mp_fread.c32 neg = MP_ZPOS; in mp_fread()
Dbn_mp_read_radix.c39 neg = MP_ZPOS; in mp_read_radix()
Dbn_mp_toradix.c46 t.sign = MP_ZPOS; in mp_toradix()
Dbn_mp_radix_size.c57 t.sign = MP_ZPOS; in mp_radix_size()
/external/dropbear/libtommath/mtest/
Dmtest.c207 a.sign = MP_ZPOS; in main()
208 b.sign = MP_ZPOS; in main()
221 a.sign = MP_ZPOS; in main()
222 b.sign = MP_ZPOS; in main()
252 b.sign = MP_ZPOS; in main()
253 a.sign = MP_ZPOS; in main()
Dmpi.c287 SIGN(mp) = MP_ZPOS; in mp_init_size()
470 SIGN(mp) = MP_ZPOS; in mp_zero()
546 if(SIGN(b) == MP_ZPOS) { in mp_add_d()
551 SIGN(b) = MP_ZPOS; in mp_add_d()
596 SIGN(b) = MP_ZPOS; in mp_sub_d()
707 SIGN(q) = MP_ZPOS; in mp_div_d()
717 SIGN(&qp) = MP_ZPOS; in mp_div_d()
819 SIGN(b) = MP_ZPOS; in mp_abs()
845 SIGN(b) = MP_ZPOS; in mp_neg()
847 SIGN(b) = (SIGN(b) == MP_NEG) ? MP_ZPOS : MP_NEG; in mp_neg()
[all …]
/external/wpa_supplicant/
Dlibtommath.c64 #define MP_ZPOS 0 /* positive integer */ macro
341 a->sign = MP_ZPOS; in mp_init()
365 a->sign = MP_ZPOS; in mp_clear()
430 c->sign = (sa == MP_ZPOS) ? MP_NEG : MP_ZPOS; in mp_sub()
443 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_mul()
481 c->sign = (c->used > 0) ? neg : MP_ZPOS; in mp_mul()
1054 a->sign = MP_ZPOS; in mp_zero()
1194 a->sign = MP_ZPOS; in mp_clamp()
1252 b->sign = MP_ZPOS; in mp_abs()
1589 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()
[all …]
/external/dropbear/libtommath/pre_gen/
Dmpi.c798 b->sign = MP_ZPOS; in mp_abs()
902 a->sign = MP_ZPOS; in mp_add_d()
920 c->sign = MP_ZPOS; in mp_add_d()
929 if (a->sign == MP_ZPOS) { in mp_add_d()
1126 a->sign = MP_ZPOS; in mp_clamp()
1174 a->sign = MP_ZPOS; in mp_clear()
1629 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()
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()
1703 neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG; in mp_div()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c87 #define MP_ZPOS 0 /* positive integer */ macro
381 a->sign = MP_ZPOS; in mp_init()
405 a->sign = MP_ZPOS; in mp_clear()
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()
521 c->sign = (c->used > 0) ? neg : MP_ZPOS; in mp_mul()
1102 a->sign = MP_ZPOS; in mp_zero()
1242 a->sign = MP_ZPOS; in mp_clamp()
1301 b->sign = MP_ZPOS; in mp_abs()
1647 n2 = (a->sign == b->sign ? MP_ZPOS : MP_NEG); in mp_div()
[all …]

12