Home
last modified time | relevance | path

Searched refs:PyLong_FromUnsignedLong (Results 1 – 25 of 41) sorted by relevance

12

/third_party/python/Python/
Dstructmember.c21 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne()
27 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne()
33 v = PyLong_FromUnsignedLong(*(unsigned int*)addr); in PyMember_GetOne()
39 v = PyLong_FromUnsignedLong(*(unsigned long*)addr); in PyMember_GetOne()
Dmodsupport.c320 return PyLong_FromUnsignedLong(n); in do_mkvalue()
335 return PyLong_FromUnsignedLong(n); in do_mkvalue()
Dpystate.c1226 PyObject *id = PyLong_FromUnsignedLong(t->thread_id); in _PyThread_CurrentFrames()
1279 PyObject *id = PyLong_FromUnsignedLong(t->thread_id); in _PyThread_CurrentExceptions()
/third_party/python/Modules/
D_stat.c331 return PyLong_FromUnsignedLong(mode & S_IMODE); in stat_S_IMODE()
344 return PyLong_FromUnsignedLong(mode & S_IFMT); in stat_S_IFMT()
596 PyLong_FromUnsignedLong(IO_REPARSE_TAG_SYMLINK)) < 0) { in stat_exec()
600 PyLong_FromUnsignedLong(IO_REPARSE_TAG_MOUNT_POINT)) < 0) { in stat_exec()
604 PyLong_FromUnsignedLong(IO_REPARSE_TAG_APPEXECLINK)) < 0) { in stat_exec()
D_randommodule.c391 element = PyLong_FromUnsignedLong(self->state[i]); in _random_Random_getstate_impl()
489 return PyLong_FromUnsignedLong(genrand_uint32(self) >> (32 - k)); in _random_Random_getrandbits_impl()
Daudioop.c474 return PyLong_FromUnsignedLong(max); in audioop_max_impl()
563 return PyLong_FromUnsignedLong(res); in audioop_rms_impl()
834 return PyLong_FromUnsignedLong(avg); in audioop_avgpp_impl()
887 return PyLong_FromUnsignedLong(max); in audioop_maxpp_impl()
D_threadmodule.c1167 return PyLong_FromUnsignedLong(ident); in thread_PyThread_start_new_thread()
1244 return PyLong_FromUnsignedLong(ident); in thread_get_ident()
1263 return PyLong_FromUnsignedLong(native_id); in thread_get_native_id()
D_struct.c448 return PyLong_FromUnsignedLong((unsigned long)x); in nu_uint()
464 return PyLong_FromUnsignedLong(x); in nu_ulong()
830 return PyLong_FromUnsignedLong(x); in bu_uint()
1051 return PyLong_FromUnsignedLong(x); in lu_uint()
Dsocketmodule.c3052 return PyLong_FromUnsignedLong(vflag); in sock_getsockopt()
4832 return PyLong_FromUnsignedLong(recv); }
4842 return PyLong_FromUnsignedLong(recv); }
4852 return PyLong_FromUnsignedLong(recv); }
6107 return PyLong_FromUnsignedLong(ntohs((unsigned short)x));
6141 return PyLong_FromUnsignedLong(ntohl(x));
6170 return PyLong_FromUnsignedLong(htons((unsigned short)x));
6204 return PyLong_FromUnsignedLong(htonl((unsigned long)x));
6806 return PyLong_FromUnsignedLong(index);
8379 tmp = PyLong_FromUnsignedLong(codes[i]);
D_tracemalloc.c1090 lineno_obj = PyLong_FromUnsignedLong(frame->lineno); in frame_to_pyobject()
1172 obj = PyLong_FromUnsignedLong(trace->traceback->total_nframe); in trace_to_pyobject()
Dzlibmodule.c1416 return PyLong_FromUnsignedLong(value & 0xffffffffU); in zlib_adler32_impl()
1457 return PyLong_FromUnsignedLong(signed_val & 0xffffffffU); in zlib_crc32_impl()
D_testcapimodule.c497 #define F_U_TO_PY PyLong_FromUnsignedLong
1236 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_b()
1245 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_B()
1263 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_H()
1272 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_I()
1281 return PyLong_FromUnsignedLong(value); in getargs_k()
7249 PyModule_AddObject(m, "UINT_MAX", PyLong_FromUnsignedLong(UINT_MAX)); in PyInit__testcapi()
7252 PyModule_AddObject(m, "ULONG_MAX", PyLong_FromUnsignedLong(ULONG_MAX)); in PyInit__testcapi()
D_winapi.c49 PyLong_FromUnsignedLong((unsigned long) handle)
1870 return PyLong_FromUnsignedLong(GetACP()); in _winapi_GetACP_impl()
Dposixmodule.c671 return PyLong_FromUnsignedLong(uid); in _PyLong_FromUid()
679 return PyLong_FromUnsignedLong(gid); in _PyLong_FromGid()
2354 PyObject *ns_fractional = PyLong_FromUnsignedLong(nsec); in fill_time()
2404 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev)); in _pystat_fromstructstat()
2475 PyLong_FromUnsignedLong(st->st_file_attributes)); in _pystat_fromstructstat()
2483 PyLong_FromUnsignedLong(st->st_reparse_tag)); in _pystat_fromstructstat()
7536 PyObject *o = PyLong_FromUnsignedLong((unsigned long)groups[i]); in os_getgrouplist_impl()
11261 PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid.val[0])); in _pystatvfs_fromstructstatvfs()
11263 PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid)); in _pystatvfs_fromstructstatvfs()
14679 return PyLong_FromUnsignedLong((unsigned long)exitcode); in os_waitstatus_to_exitcode_impl()
Dmathmodule.c1960 return PyLong_FromUnsignedLong(total); in factorial_partial_product()
2085 return PyLong_FromUnsignedLong(SmallFactorials[x]); in math_factorial()
/third_party/boost/boost/python/converter/
Dbuiltin_converters.hpp97 BOOST_PYTHON_TO_PYTHON_BY_VALUE(unsigned T, ::PyLong_FromUnsignedLong(x), &PyLong_Type)
107 ? ::PyLong_FromUnsignedLong(x) \
/third_party/python/PC/
Dmsvcrtmodule.c485 return PyLong_FromUnsignedLong(res); in msvcrt_GetErrorMode_impl()
507 return PyLong_FromUnsignedLong(res); in msvcrt_SetErrorMode_impl()
Dwinreg.c737 obData = PyLong_FromUnsignedLong(0); in Reg2Py()
739 obData = PyLong_FromUnsignedLong(*(DWORD *)retDataBuf); in Reg2Py()
Dpython3dll.c338 EXPORT_FUNC(PyLong_FromUnsignedLong)
/third_party/python/Include/
Dlongobject.h19 PyAPI_FUNC(PyObject *) PyLong_FromUnsignedLong(unsigned long);
/third_party/python/Modules/_ctypes/
Dcfield.c743 return PyLong_FromUnsignedLong(val); in I_get()
753 return PyLong_FromUnsignedLong(val); in I_get_sw()
841 return PyLong_FromUnsignedLong(val); in L_get()
851 return PyLong_FromUnsignedLong(val); in L_get_sw()
/third_party/python/Modules/_xxtestfuzz/
Dfuzzer.c241 PyObject* flags_obj = PyLong_FromUnsignedLong(flags); in fuzz_sre_compile()
/third_party/python/Modules/clinic/
Dbinascii.c.h398 return_value = PyLong_FromUnsignedLong((unsigned long)_return_value); in binascii_crc32()
/third_party/python/Doc/c-api/
Dlong.rst48 .. c:function:: PyObject* PyLong_FromUnsignedLong(unsigned long v)
/third_party/python/Doc/data/
Dstable_abi.dat355 function,PyLong_FromUnsignedLong,3.2,

12