/external/python/cpython2/Modules/ |
D | testcapi_long.h | 85 one = PyLong_FromLong(1); in TESTNAME() 108 y = PyLong_FromLong((long)NBITS); in TESTNAME()
|
D | _testcapimodule.c | 505 #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 …]
|
D | signalmodule.c | 424 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.c | 395 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.c | 341 return PyLong_FromLong(block_size); in EVP_get_block_size() 349 return PyLong_FromLong(size); in EVP_get_digest_size()
|
D | _randommodule.c | 327 element = PyLong_FromLong((long)(self->index)); in random_getstate()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 287 py_sem_value_max = PyLong_FromLong(INT_MAX); in init_multiprocessing() 289 py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); in init_multiprocessing()
|
D | multiprocessing.h | 149 # define PyInt_FromLong PyLong_FromLong
|
/external/python/cpython2/Objects/ |
D | longobject.c | 101 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 …]
|
D | intobject.c | 814 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()
|
D | floatobject.c | 455 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()
|
D | memoryobject.c | 390 return PyLong_FromLong(self->view.ndim); in memory_ndim_get()
|
/external/python/cpython2/Include/ |
D | longobject.h | 18 PyAPI_FUNC(PyObject *) PyLong_FromLong(long);
|
/external/python/cpython2/PC/ |
D | winsound.c | 154 PyObject *v = PyLong_FromLong(value); in add_define()
|
/external/python/cpython2/Modules/_io/ |
D | _iomodule.h | 130 # define PyLong_FromOff_t PyLong_FromLong
|
D | _iomodule.c | 768 if (!(_PyIO_zero = PyLong_FromLong(0L))) in init_io()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_composite_container.cc | 54 #define PyInt_FromLong PyLong_FromLong 295 ScopedPyObjectPtr py_index(PyLong_FromLong(index)); in Remove()
|
D | extension_dict.cc | 57 return PyLong_FromLong(PyDict_Size(self->values)); in len()
|
D | repeated_scalar_container.cc | 52 #define PyInt_FromLong PyLong_FromLong 106 ScopedPyObjectPtr py_index(PyLong_FromLong(index)); in AssignItem()
|
D | map_container.cc | 50 #define PyInt_FromLong PyLong_FromLong
|
/external/libxml2/python/ |
D | types.c | 15 #define PY_IMPORT_INT PyLong_FromLong 107 ret = PyLong_FromLong(val); in libxml_longWrap()
|
D | libxml.c | 788 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/ |
D | python.def | 239 PyLong_FromLong
|
/external/python/cpython2/Doc/c-api/ |
D | long.rst | 41 .. c:function:: PyObject* PyLong_FromLong(long v)
|
/external/python/cpython2/Python/ |
D | bltinmodule.c | 1733 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()
|