Home | History | Annotate | Download | only in mtest

Lines Matching refs:SIGN

287   SIGN(mp) = MP_ZPOS;
320 SIGN(mp) = SIGN(from);
376 /* Copy the precision and sign from the original */
378 SIGN(to) = SIGN(from);
470 SIGN(mp) = MP_ZPOS;
517 SIGN(mp) = MP_NEG;
533 Compute the sum b = a + d, for a single digit d. Respects the sign of
546 if(SIGN(b) == MP_ZPOS) {
551 SIGN(b) = MP_ZPOS;
568 sign of its subtrahend (single digits are unsigned anyway).
580 if(SIGN(b) == MP_NEG) {
592 SIGN(b) = MP_NEG;
596 SIGN(b) = MP_ZPOS;
609 Compute the product b = a * d, for a single digit d. Respects the sign
658 single digit d. Respects the sign of its divisor (single digits are
707 SIGN(q) = MP_ZPOS;
717 SIGN(&qp) = MP_ZPOS;
819 SIGN(b) = MP_ZPOS;
845 SIGN(b) = MP_ZPOS;
847 SIGN(b) = (SIGN(b) == MP_NEG) ? MP_ZPOS : MP_NEG;
870 if(SIGN(a) == SIGN(b)) { /* same sign: add values, keep sign */
887 } else if((cmp = s_mp_cmp(a, b)) > 0) { /* different sign: a > b */
915 } else if(cmp == 0) { /* different sign, a == b */
920 } else { /* different sign: a < b */
947 SIGN(c) = MP_ZPOS;
970 if(SIGN(a) != SIGN(b)) {
979 SIGN(c) = SIGN(a);
982 } else if((cmp = s_mp_cmp(a, b)) > 0) { /* Same sign, a > b */
1003 } else if(cmp == 0) { /* Same sign, equal magnitude */
1007 } else { /* Same sign, b > a */
1029 SIGN(c) = !SIGN(b);
1033 SIGN(c) = MP_ZPOS;
1056 sgn = (SIGN(a) == SIGN(b)) ? MP_ZPOS : MP_NEG;
1071 SIGN(c) = MP_ZPOS;
1073 SIGN(c) = sgn;
1122 SIGN(b) = MP_ZPOS;
1170 /* Set quotient to 1, with appropriate sign */
1172 int qneg = (SIGN(a) != SIGN(b));
1176 SIGN(q) = MP_NEG;
1197 SIGN(&rtmp) = SIGN(a); /* Sr = Sa */
1198 if(SIGN(a) == SIGN(b))
1199 SIGN(&qtmp) = MP_ZPOS; /* Sq = MP_ZPOS if Sa = Sb */
1201 SIGN(&qtmp) = MP_NEG; /* Sq = MP_NEG if Sa != Sb */
1204 SIGN(&qtmp) = MP_ZPOS;
1206 SIGN(&rtmp) = MP_ZPOS;
1316 SIGN(&s) = SIGN(a);
1360 if(SIGN(m) == MP_NEG)
1368 the sign (if a is negative).
1380 if(SIGN(c) == MP_NEG) {
1425 if(SIGN(a) == MP_NEG)
1463 if(SIGN(a) == MP_NEG)
1778 if(SIGN(a) == MP_NEG)
1801 if(SIGN(a) == MP_NEG)
1816 if(SIGN(a) == SIGN(b)) {
1822 if(SIGN(a) == MP_ZPOS)
1827 } else if(SIGN(a) == MP_ZPOS) {
1942 SIGN(&u) = MP_ZPOS;
1943 SIGN(&v) = MP_ZPOS;
1958 if(SIGN(&v) == MP_ZPOS)
1959 SIGN(&t) = MP_NEG;
1961 SIGN(&t) = MP_ZPOS;
1983 if(SIGN(&t) == MP_ZPOS)
1984 SIGN(&v) = MP_NEG;
1986 SIGN(&v) = MP_ZPOS;
2207 SIGN(c) = SIGN(a);
2241 fputc((SIGN(mp) == MP_NEG) ? '-' : '+', ofp);
2271 /* Get sign from first byte */
2273 SIGN(mp) = MP_NEG;
2275 SIGN(mp) = MP_ZPOS;
2303 str[0] = (char)SIGN(mp);
2495 SIGN(mp) = MP_ZPOS;
2497 SIGN(mp) = sig;
2515 ++len; /* for sign */
2564 /* Save sign for later, and take absolute value */
2565 sgn = SIGN(&tmp); SIGN(&tmp) = MP_ZPOS;
2580 /* Add - sign if original value was negative */
2587 /* Reverse the digits and sign indicator */
2865 SIGN(mp) = MP_ZPOS;
3967 Does not include space for a sign or a NUL terminator.