Home
last modified time | relevance | path

Searched refs:PyLong_FromUnsignedLong (Results 1 – 25 of 39) 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.c313 return PyLong_FromUnsignedLong(n); in do_mkvalue()
328 return PyLong_FromUnsignedLong(n); in do_mkvalue()
/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.c389 element = PyLong_FromUnsignedLong(self->state[i]); in _random_Random_getstate_impl()
487 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.c1123 return PyLong_FromUnsignedLong(ident); in thread_PyThread_start_new_thread()
1188 return PyLong_FromUnsignedLong(ident); in thread_get_ident()
1207 return PyLong_FromUnsignedLong(native_id); in thread_get_native_id()
D_struct.c437 return PyLong_FromUnsignedLong((unsigned long)x); in nu_uint()
453 return PyLong_FromUnsignedLong(x); in nu_ulong()
819 return PyLong_FromUnsignedLong(x); in bu_uint()
1040 return PyLong_FromUnsignedLong(x); in lu_uint()
Dsocketmodule.c3097 return PyLong_FromUnsignedLong(vflag); in sock_getsockopt()
4877 return PyLong_FromUnsignedLong(recv); }
4887 return PyLong_FromUnsignedLong(recv); }
4897 return PyLong_FromUnsignedLong(recv); }
6162 return PyLong_FromUnsignedLong(ntohs((unsigned short)x));
6201 return PyLong_FromUnsignedLong(ntohl(x));
6233 return PyLong_FromUnsignedLong(htons((unsigned short)x));
6272 return PyLong_FromUnsignedLong(htonl((unsigned long)x));
6878 return PyLong_FromUnsignedLong(index);
8414 tmp = PyLong_FromUnsignedLong(codes[i]);
Dzlibmodule.c1270 return PyLong_FromUnsignedLong(value & 0xffffffffU); in zlib_adler32_impl()
1311 return PyLong_FromUnsignedLong(signed_val & 0xffffffffU); in zlib_crc32_impl()
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()
D_testcapimodule.c423 #define F_U_TO_PY PyLong_FromUnsignedLong
1106 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_b()
1115 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_B()
1133 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_H()
1142 return PyLong_FromUnsignedLong((unsigned long)value); in getargs_I()
1151 return PyLong_FromUnsignedLong(value); in getargs_k()
6855 PyModule_AddObject(m, "UINT_MAX", PyLong_FromUnsignedLong(UINT_MAX)); in PyInit__testcapi()
6858 PyModule_AddObject(m, "ULONG_MAX", PyLong_FromUnsignedLong(ULONG_MAX)); in PyInit__testcapi()
D_winapi.c47 PyLong_FromUnsignedLong((unsigned long) handle)
1861 return PyLong_FromUnsignedLong(GetACP()); in _winapi_GetACP_impl()
Dposixmodule.c629 return PyLong_FromUnsignedLong(uid); in _PyLong_FromUid()
637 return PyLong_FromUnsignedLong(gid); in _PyLong_FromGid()
2276 PyObject *ns_fractional = PyLong_FromUnsignedLong(nsec); in fill_time()
2326 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev)); in _pystat_fromstructstat()
2397 PyLong_FromUnsignedLong(st->st_file_attributes)); in _pystat_fromstructstat()
2405 PyLong_FromUnsignedLong(st->st_reparse_tag)); in _pystat_fromstructstat()
7408 PyObject *o = PyLong_FromUnsignedLong((unsigned long)groups[i]); in os_getgrouplist_impl()
11106 PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid.val[0])); in _pystatvfs_fromstructstatvfs()
11108 PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid)); in _pystatvfs_fromstructstatvfs()
14424 return PyLong_FromUnsignedLong((unsigned long)exitcode); in os_waitstatus_to_exitcode_impl()
Dmathmodule.c1950 return PyLong_FromUnsignedLong(total); in factorial_partial_product()
2103 return PyLong_FromUnsignedLong(SmallFactorials[x]); in math_factorial()
D_sre.c2799 x = PyLong_FromUnsignedLong(SRE_MAXREPEAT); in PyInit__sre()
2805 x = PyLong_FromUnsignedLong(SRE_MAXGROUPS); in PyInit__sre()
Dbinascii.c985 return PyLong_FromUnsignedLong(crc); in binascii_crc_hqx_impl()
/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/Include/
Dlongobject.h19 PyAPI_FUNC(PyObject *) PyLong_FromUnsignedLong(unsigned long);
/third_party/python/PC/
Dmsvcrtmodule.c504 return PyLong_FromUnsignedLong(res); in msvcrt_SetErrorMode_impl()
Dwinreg.c727 obData = PyLong_FromUnsignedLong(0); in Reg2Py()
729 obData = PyLong_FromUnsignedLong(*(DWORD *)retDataBuf); in Reg2Py()
Dpython3.def339 PyLong_FromUnsignedLong=python39.PyLong_FromUnsignedLong
/third_party/python/Modules/_ctypes/
Dcfield.c771 return PyLong_FromUnsignedLong(val); in I_get()
781 return PyLong_FromUnsignedLong(val); in I_get_sw()
869 return PyLong_FromUnsignedLong(val); in L_get()
879 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.h418 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)

12