Lines Matching defs:sign
2088 _dec_settriple(PyObject *dec, uint8_t sign, uint32_t v, mpd_ssize_t exp)
2102 mpd_set_flags(MPD(dec), sign);
2160 uint8_t sign;
2175 sign = MPD_NEG;
2179 sign = MPD_POS;
2183 _dec_settriple(dec, sign, *l->ob_digit, 0);
2189 mpd_qimport_u32(MPD(dec), l->ob_digit, len, sign, PyLong_BASE,
2192 mpd_qimport_u16(MPD(dec), l->ob_digit, len, sign, PyLong_BASE,
2279 int sign;
2300 sign = (copysign(1.0, x) == 1.0) ? 0 : 1;
2313 mpd_setspecial(MPD(dec), sign, MPD_INF);
2386 mpd_set_sign(MPD(dec), sign);
2462 long sign, l;
2476 /* sign */
2480 "sign must be an integer with the value 0 or 1");
2483 sign = PyLong_AsLong(tmp);
2484 if (sign == -1 && PyErr_Occurred()) {
2487 if (sign != 0 && sign != 1) {
2489 "sign must be an integer with the value 0 or 1");
2492 sign_special[0] = sign ? '-' : '+';
2537 /* [sign][coeffdigits+1][E][-][expdigits+1]['\0'] */
3248 * The portion of the spec we're working with is [[fill]align][sign][z] */
3267 /* skip over [sign] */
3430 If so, clear the sign and format the resulting positive zero. */
3846 PyObject *sign = NULL;
3861 sign = PyLong_FromUnsignedLong(mpd_sign(MPD(dec)));
3862 if (sign == NULL) {
3893 /* clear NaN and sign */
3924 sign, coeff, expt, NULL);
3929 Py_XDECREF(sign);
5893 "sign digits exponent"));