Lines Matching defs:long_cnt
4131 PyObject *long_cnt;
4139 assert(cnt != PY_SSIZE_T_MAX && long_cnt == NULL && long_step==PyLong(1));
4145 assert(cnt == PY_SSIZE_T_MAX && long_cnt != NULL && long_step != NULL);
4147 Advances with: long_cnt += long_step
4149 Either long_cnt or long_step may be a float, Fraction, or Decimal.
4155 start as long_cnt: object(c_default="NULL") = 0
4168 itertools_count_impl(PyTypeObject *type, PyObject *long_cnt,
4177 if ((long_cnt != NULL && !PyNumber_Check(long_cnt)) ||
4183 fast_mode = (long_cnt == NULL || PyLong_Check(long_cnt)) &&
4187 if (long_cnt != NULL) {
4189 assert(PyLong_Check(long_cnt));
4190 cnt = PyLong_AsSsize_t(long_cnt);
4198 long_cnt = _PyLong_GetZero();
4200 Py_INCREF(long_cnt);
4208 assert(long_cnt != NULL && long_step != NULL);
4222 Py_CLEAR(long_cnt);
4226 assert((cnt != PY_SSIZE_T_MAX && long_cnt == NULL && fast_mode) ||
4227 (cnt == PY_SSIZE_T_MAX && long_cnt != NULL && !fast_mode));
4234 Py_XDECREF(long_cnt);
4239 lz->long_cnt = long_cnt;
4249 Py_XDECREF(lz->long_cnt);
4257 Py_VISIT(lz->long_cnt);
4265 PyObject *long_cnt;
4268 long_cnt = lz->long_cnt;
4269 if (long_cnt == NULL) {
4271 long_cnt = PyLong_FromSsize_t(PY_SSIZE_T_MAX);
4272 if (long_cnt == NULL)
4275 assert(lz->cnt == PY_SSIZE_T_MAX && long_cnt != NULL);
4277 stepped_up = PyNumber_Add(long_cnt, lz->long_step);
4280 lz->long_cnt = stepped_up;
4281 return long_cnt;
4308 lz->long_cnt);
4313 lz->long_cnt, lz->long_step);
4320 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->long_cnt, lz->long_step);