Lines Matching refs:vv
232 PyLong_AsLongAndOverflow(PyObject *vv, int *overflow) in PyLong_AsLongAndOverflow() argument
243 if (vv == NULL) { in PyLong_AsLongAndOverflow()
248 if(PyInt_Check(vv)) in PyLong_AsLongAndOverflow()
249 return PyInt_AsLong(vv); in PyLong_AsLongAndOverflow()
251 if (!PyLong_Check(vv)) { in PyLong_AsLongAndOverflow()
253 nb = vv->ob_type->tp_as_number; in PyLong_AsLongAndOverflow()
259 vv = (*nb->nb_int) (vv); in PyLong_AsLongAndOverflow()
260 if (vv == NULL) in PyLong_AsLongAndOverflow()
263 if(PyInt_Check(vv)) { in PyLong_AsLongAndOverflow()
264 res = PyInt_AsLong(vv); in PyLong_AsLongAndOverflow()
267 if (!PyLong_Check(vv)) { in PyLong_AsLongAndOverflow()
268 Py_DECREF(vv); in PyLong_AsLongAndOverflow()
276 v = (PyLongObject *)vv; in PyLong_AsLongAndOverflow()
320 Py_DECREF(vv); in PyLong_AsLongAndOverflow()
364 PyLong_AsSsize_t(PyObject *vv) { in PyLong_AsSsize_t() argument
370 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsSsize_t()
374 v = (PyLongObject *)vv; in PyLong_AsSsize_t()
409 PyLong_AsUnsignedLong(PyObject *vv) in PyLong_AsUnsignedLong() argument
415 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLong()
416 if (vv != NULL && PyInt_Check(vv)) { in PyLong_AsUnsignedLong()
417 long val = PyInt_AsLong(vv); in PyLong_AsUnsignedLong()
429 v = (PyLongObject *)vv; in PyLong_AsUnsignedLong()
453 PyLong_AsUnsignedLongMask(PyObject *vv) in PyLong_AsUnsignedLongMask() argument
460 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLongMask()
461 if (vv != NULL && PyInt_Check(vv)) in PyLong_AsUnsignedLongMask()
462 return PyInt_AsUnsignedLongMask(vv); in PyLong_AsUnsignedLongMask()
466 v = (PyLongObject *)vv; in PyLong_AsUnsignedLongMask()
481 _PyLong_Sign(PyObject *vv) in _PyLong_Sign() argument
483 PyLongObject *v = (PyLongObject *)vv; in _PyLong_Sign()
492 _PyLong_NumBits(PyObject *vv) in _PyLong_NumBits() argument
494 PyLongObject *v = (PyLongObject *)vv; in _PyLong_NumBits()
795 PyLong_AsVoidPtr(PyObject *vv) in PyLong_AsVoidPtr() argument
804 if (PyInt_Check(vv)) in PyLong_AsVoidPtr()
805 x = PyInt_AS_LONG(vv); in PyLong_AsVoidPtr()
806 else if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr()
807 x = PyLong_AsLong(vv); in PyLong_AsVoidPtr()
809 x = PyLong_AsUnsignedLong(vv); in PyLong_AsVoidPtr()
820 if (PyInt_Check(vv)) in PyLong_AsVoidPtr()
821 x = PyInt_AS_LONG(vv); in PyLong_AsVoidPtr()
822 else if (PyLong_Check(vv) && _PyLong_Sign(vv) < 0) in PyLong_AsVoidPtr()
823 x = PyLong_AsLongLong(vv); in PyLong_AsVoidPtr()
825 x = PyLong_AsUnsignedLongLong(vv); in PyLong_AsVoidPtr()
939 PyLong_AsLongLong(PyObject *vv) in PyLong_AsLongLong() argument
945 if (vv == NULL) { in PyLong_AsLongLong()
949 if (!PyLong_Check(vv)) { in PyLong_AsLongLong()
952 if (PyInt_Check(vv)) in PyLong_AsLongLong()
953 return (PY_LONG_LONG)PyInt_AsLong(vv); in PyLong_AsLongLong()
954 if ((nb = vv->ob_type->tp_as_number) == NULL || in PyLong_AsLongLong()
959 io = (*nb->nb_int) (vv); in PyLong_AsLongLong()
977 res = _PyLong_AsByteArray((PyLongObject *)vv, (unsigned char *)&bytes, in PyLong_AsLongLong()
991 PyLong_AsUnsignedLongLong(PyObject *vv) in PyLong_AsUnsignedLongLong() argument
997 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLongLong()
1002 res = _PyLong_AsByteArray((PyLongObject *)vv, (unsigned char *)&bytes, in PyLong_AsUnsignedLongLong()
1016 PyLong_AsUnsignedLongLongMask(PyObject *vv) in PyLong_AsUnsignedLongLongMask() argument
1023 if (vv == NULL || !PyLong_Check(vv)) { in PyLong_AsUnsignedLongLongMask()
1027 v = (PyLongObject *)vv; in PyLong_AsUnsignedLongLongMask()
1050 PyLong_AsLongLongAndOverflow(PyObject *vv, int *overflow) in PyLong_AsLongLongAndOverflow() argument
1061 if (vv == NULL) { in PyLong_AsLongLongAndOverflow()
1066 if (PyInt_Check(vv)) in PyLong_AsLongLongAndOverflow()
1067 return PyInt_AsLong(vv); in PyLong_AsLongLongAndOverflow()
1069 if (!PyLong_Check(vv)) { in PyLong_AsLongLongAndOverflow()
1071 nb = vv->ob_type->tp_as_number; in PyLong_AsLongLongAndOverflow()
1077 vv = (*nb->nb_int) (vv); in PyLong_AsLongLongAndOverflow()
1078 if (vv == NULL) in PyLong_AsLongLongAndOverflow()
1081 if(PyInt_Check(vv)) { in PyLong_AsLongLongAndOverflow()
1082 res = PyInt_AsLong(vv); in PyLong_AsLongLongAndOverflow()
1085 if (!PyLong_Check(vv)) { in PyLong_AsLongLongAndOverflow()
1086 Py_DECREF(vv); in PyLong_AsLongLongAndOverflow()
1094 v = (PyLongObject *)vv; in PyLong_AsLongLongAndOverflow()
1138 Py_DECREF(vv); in PyLong_AsLongLongAndOverflow()
2084 twodigits vv; in x_divrem() local
2151 vv = ((twodigits)vtop << PyLong_SHIFT) | vk[size_w-1]; in x_divrem()
2152 q = (digit)(vv / wm1); in x_divrem()
2153 r = (digit)(vv - (twodigits)wm1 * q); /* r = vv % wm1 */ in x_divrem()