Lines Matching defs:sign

208     Py_ssize_t sign = x < 0 ? -1: 1;
210 _PyObject_InitVar((PyVarObject*)v, &PyLong_Type, sign);
219 int sign;
226 sign = -1;
230 sign = 1;
243 Py_SET_SIZE(v, ndigits * sign);
446 On overflow, return -1 and set *overflow to 1 or -1 depending on the sign of
461 int sign;
494 sign = 1;
497 sign = -1;
504 *overflow = sign;
512 res = (long)x * sign;
514 else if (sign < 0 && x == PY_ABS_LONG_MIN) {
518 *overflow = sign;
572 int sign;
590 sign = 1;
593 sign = -1;
606 return (Py_ssize_t)x * sign;
608 else if (sign < 0 && x == PY_ABS_SSIZE_T_MIN) {
715 int sign;
727 sign = 1;
730 sign = -1;
736 return x * sign;
989 /* Count # of sign bits -- they needn't be stored,
991 * make sure at least one sign bit gets stored. */
1021 /* Fill leading bits of the byte with sign bits
1023 infinite supply of sign bits). */
1031 just above didn't get to ensure there's a sign bit, and the
1032 loop below wouldn't add one either. Make sure a sign bit
1043 /* Fill remaining bytes with copies of the sign bit. */
1160 size_t t; /* unsigned so >> doesn't propagate sign bit */
1292 int sign;
1304 sign = 1;
1307 sign = -1;
1313 return x * sign;
1343 On overflow, return -1 and set *overflow to 1 or -1 depending on the sign of
1358 int sign;
1391 sign = 1;
1394 sign = -1;
1401 *overflow = sign;
1409 res = (long long)x * sign;
1411 else if (sign < 0 && x == PY_ABS_LLONG_MIN) {
1415 *overflow = sign;
1569 borrow &= 1; /* keep only 1 sign bit */
1658 The sign of a is ignored; n should not be zero. */
1689 the remainder as the result of the function. The sign of a is
1858 /* and sign */ \
1979 /* Allow 1 character for a '-' sign. */
2272 int sign = 1, error_if_nonzero = 0;
2291 sign = -1;
2601 if (sign < 0) {
2741 The quotient z has the sign of a*b;
2742 the remainder r has the sign of a,
2794 /* Set the sign. */
3104 Py_ssize_t sign = Py_SIZE(a) - Py_SIZE(b);
3105 if (sign == 0) {
3114 sign = Py_SIZE(a) < 0 ? -diff : diff;
3116 return sign;
3136 int sign;
3144 sign = 1;
3147 sign = -1;
3182 x = x * sign;
3231 int sign = 1;
3236 sign = -1;
3250 sign = -1;
3264 borrow &= 1; /* Keep only one sign bit */
3270 borrow &= 1; /* Keep only one sign bit */
3273 if (sign < 0) {
3458 viewing the shift as being by digits. The sign bit is ignored, and
3811 /* 'a' and 'b' have the same sign. */
3834 /* 'a' and 'b' have the same sign. */
3848 |a| by |b|, with the sign of a. This is also expressed
4008 returns either 0.0 or -0.0, depending on the sign of b. For a and
4009 b both nonzero, ignore signs of a and b, and add the sign back in
4078 applying ldexp. The result of ldexp is adjusted for sign before
4967 from sign-magnitude to two's complement, and convert the
4968 result back to sign-magnitude at the end. */