Home
last modified time | relevance | path

Searched refs:PyLong_FromLong (Results 1 – 25 of 40) sorted by relevance

12

/external/python/cpython2/Modules/
Dtestcapi_long.h85 one = PyLong_FromLong(1); in TESTNAME()
108 y = PyLong_FromLong((long)NBITS); in TESTNAME()
D_testcapimodule.c505 #define F_S_TO_PY PyLong_FromLong
585 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow()
588 one = PyLong_FromLong(1L); in test_long_and_overflow()
629 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow()
632 one = PyLong_FromLong(1L); in test_long_and_overflow()
686 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow()
701 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow()
753 one = PyLong_FromLong(1L); in test_long_long_and_overflow()
797 one = PyLong_FromLong(1L); in test_long_long_and_overflow()
899 num = PyLong_FromLong(42); in test_L_code()
[all …]
Dsignalmodule.c424 return PyLong_FromLong(old_fd); in signal_set_wakeup_fd()
820 x = PyLong_FromLong(ITIMER_REAL); in initsignal()
825 x = PyLong_FromLong(ITIMER_VIRTUAL); in initsignal()
830 x = PyLong_FromLong(ITIMER_PROF); in initsignal()
D_ssl.c395 key = PyLong_FromLong(lib); in fill_and_set_sslerror()
1223 version = PyLong_FromLong(X509_get_version(certificate) + 1); in _decode_certificate()
1876 return PyLong_FromLong(count); in PySSL_SSLread()
2399 return PyLong_FromLong(PY_SSL_CERT_NONE); in get_verify_mode()
2401 return PyLong_FromLong(PY_SSL_CERT_OPTIONAL); in get_verify_mode()
2403 return PyLong_FromLong(PY_SSL_CERT_REQUIRED); in get_verify_mode()
2484 return PyLong_FromLong(SSL_CTX_get_options(self->ctx)); in get_options()
3043 value = PyLong_FromLong(SSL_CTX_sess_ ## SSL_NAME (self->ctx)); \ in session_stats()
3493 return PyLong_FromLong(RAND_status()); in PySSL_RAND_status()
4359 key = PyLong_FromLong(libcode->code); in init_ssl()
D_hashopenssl.c341 return PyLong_FromLong(block_size); in EVP_get_block_size()
349 return PyLong_FromLong(size); in EVP_get_digest_size()
D_randommodule.c327 element = PyLong_FromLong((long)(self->index)); in random_getstate()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c287 py_sem_value_max = PyLong_FromLong(INT_MAX); in init_multiprocessing()
289 py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); in init_multiprocessing()
Dmultiprocessing.h149 # define PyInt_FromLong PyLong_FromLong
/external/python/cpython2/Objects/
Dlongobject.c101 PyLong_FromLong(long ival) in PyLong_FromLong() function
194 return PyLong_FromLong(0L); in PyLong_FromDouble()
536 return PyLong_FromLong(0L); in _PyLong_FromByteArray()
1155 *a = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(v)); in convert_binop()
1165 *b = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(w)); in convert_binop()
2051 *prem = (PyLongObject *) PyLong_FromLong((long)rem); in long_divrem()
3032 one = (PyLongObject *) PyLong_FromLong(1L); in l_divmod()
3418 c = (PyLongObject *)PyLong_FromLong(PyInt_AS_LONG(x)); in long_pow()
3473 z = (PyLongObject *)PyLong_FromLong(0L); in long_pow()
3498 z = (PyLongObject *)PyLong_FromLong(1L); in long_pow()
[all …]
Dintobject.c814 PyObject *o = PyLong_FromLong(a); in int_neg()
861 vv = PyLong_FromLong(PyInt_AS_LONG(v)); in int_lshift()
864 ww = PyLong_FromLong(PyInt_AS_LONG(w)); in int_lshift()
876 vv = PyLong_FromLong(PyInt_AS_LONG(v)); in int_lshift()
879 ww = PyLong_FromLong(PyInt_AS_LONG(w)); in int_lshift()
967 return PyLong_FromLong((v -> ob_ival)); in int_long()
Dfloatobject.c455 PyObject *ww = PyLong_FromLong(jj); in float_richcompare()
1760 denominator = PyLong_FromLong(1); in float_as_integer_ratio()
1761 py_exponent = PyLong_FromLong(labs((long)exponent)); in float_as_integer_ratio()
Dmemoryobject.c390 return PyLong_FromLong(self->view.ndim); in memory_ndim_get()
/external/python/cpython2/Include/
Dlongobject.h18 PyAPI_FUNC(PyObject *) PyLong_FromLong(long);
/external/python/cpython2/PC/
Dwinsound.c154 PyObject *v = PyLong_FromLong(value); in add_define()
/external/python/cpython2/Modules/_io/
D_iomodule.h130 # define PyLong_FromOff_t PyLong_FromLong
D_iomodule.c768 if (!(_PyIO_zero = PyLong_FromLong(0L))) in init_io()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc54 #define PyInt_FromLong PyLong_FromLong
295 ScopedPyObjectPtr py_index(PyLong_FromLong(index)); in Remove()
Dextension_dict.cc57 return PyLong_FromLong(PyDict_Size(self->values)); in len()
Drepeated_scalar_container.cc52 #define PyInt_FromLong PyLong_FromLong
106 ScopedPyObjectPtr py_index(PyLong_FromLong(index)); in AssignItem()
Dmap_container.cc50 #define PyInt_FromLong PyLong_FromLong
/external/libxml2/python/
Dtypes.c15 #define PY_IMPORT_INT PyLong_FromLong
107 ret = PyLong_FromLong(val); in libxml_longWrap()
Dlibxml.c788 py_retval = PyLong_FromLong(0); in libxml_xmlSetEntityLoader()
3032 return (PyLong_FromLong((long) -1)); in libxml_saveNodeTo()
3036 return (PyLong_FromLong((long) -1)); in libxml_saveNodeTo()
3055 return (PyLong_FromLong((long) -1)); in libxml_saveNodeTo()
3081 return (PyLong_FromLong((long) len)); in libxml_saveNodeTo()
3765 return PyLong_FromLong((long) len); in libxml_C14NDocSaveTo()
/external/python/cpython2/PC/os2vacpp/
Dpython.def239 PyLong_FromLong
/external/python/cpython2/Doc/c-api/
Dlong.rst41 .. c:function:: PyObject* PyLong_FromLong(long v)
/external/python/cpython2/Python/
Dbltinmodule.c1733 if ((one = PyLong_FromLong(1L)) == NULL) in get_len_of_range_longs()
1824 PyObject *zero = PyLong_FromLong(0); in handle_range_longs()
1864 step = PyLong_FromLong(1); in handle_range_longs()

12