Home
last modified time | relevance | path

Searched refs:PY_LONG_LONG (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Modules/_ctypes/
D_ctypes_test.c7 #if defined(HAVE_LONG_LONG) && !defined(PY_LONG_LONG)
8 #define PY_LONG_LONG LONG_LONG macro
245 EXPORT(PY_LONG_LONG) _testfunc_q_bhilfdq(signed char b, short h, int i, long l, float f, in _testfunc_q_bhilfdq()
246 double d, PY_LONG_LONG q) in _testfunc_q_bhilfdq()
248 return (PY_LONG_LONG)(b + h + i + l + f + d + q); in _testfunc_q_bhilfdq()
251 EXPORT(PY_LONG_LONG) _testfunc_q_bhilfd(signed char b, short h, int i, long l, float f, double d) in _testfunc_q_bhilfd()
253 return (PY_LONG_LONG)(b + h + i + l + f + d); in _testfunc_q_bhilfd()
266 EXPORT(PY_LONG_LONG) _testfunc_callback_q_qf(PY_LONG_LONG value, in _testfunc_callback_q_qf()
267 PY_LONG_LONG (*func)(PY_LONG_LONG)) in _testfunc_callback_q_qf() argument
269 PY_LONG_LONG sum = 0; in _testfunc_callback_q_qf()
[all …]
Dcfield.c393 get_longlong(PyObject *v, PY_LONG_LONG *p) in get_longlong()
395 PY_LONG_LONG x; in get_longlong()
411 get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p) in get_ulonglong()
413 unsigned PY_LONG_LONG x; in get_ulonglong()
420 if (x == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred()) in get_ulonglong()
901 PY_LONG_LONG val; in q_set()
902 PY_LONG_LONG x; in q_set()
906 x = SET(PY_LONG_LONG, x, val, size); in q_set()
914 PY_LONG_LONG val; in q_set_sw()
915 PY_LONG_LONG field; in q_set_sw()
[all …]
Dctypes.h48 #if defined(HAVE_LONG_LONG) && !defined(PY_LONG_LONG)
49 #define PY_LONG_LONG LONG_LONG macro
73 PY_LONG_LONG ll;
345 PY_LONG_LONG q;
/external/python/cpython2/Include/
Dlongobject.h50 PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG);
51 PyAPI_FUNC(PyObject *) PyLong_FromUnsignedLongLong(unsigned PY_LONG_LONG);
52 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *);
53 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
54 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);
55 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *);
Dpyport.h68 #ifndef PY_LONG_LONG
69 #define PY_LONG_LONG long long macro
171 typedef unsigned PY_LONG_LONG Py_uintptr_t;
172 typedef PY_LONG_LONG Py_intptr_t;
Dintobject.h46 PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
/external/python/cpython2/Python/
Dstructmember.c128 v = PyLong_FromLongLong(*(PY_LONG_LONG *)addr); in PyMember_GetOne()
131 v = PyLong_FromUnsignedLongLong(*(unsigned PY_LONG_LONG *)addr); in PyMember_GetOne()
338 PY_LONG_LONG value; in PyMember_SetOne()
339 *(PY_LONG_LONG*)addr = value = PyLong_AsLongLong(v); in PyMember_SetOne()
345 unsigned PY_LONG_LONG value; in PyMember_SetOne()
349 *(unsigned PY_LONG_LONG*)addr = value = PyLong_AsUnsignedLongLong(v); in PyMember_SetOne()
351 *(unsigned PY_LONG_LONG*)addr = value = PyInt_AsLong(v); in PyMember_SetOne()
352 if ((value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred()) in PyMember_SetOne()
Dmodsupport.c374 return PyLong_FromLongLong((PY_LONG_LONG)va_arg(*p_va, PY_LONG_LONG)); in do_mkvalue()
377 return PyLong_FromUnsignedLongLong((PY_LONG_LONG)va_arg(*p_va, unsigned PY_LONG_LONG)); in do_mkvalue()
Dgetargs.c782 PY_LONG_LONG *p = va_arg( *p_va, PY_LONG_LONG * ); in convertsimple()
783 PY_LONG_LONG ival; in convertsimple()
787 if (ival == (PY_LONG_LONG)-1 && PyErr_Occurred() ) { in convertsimple()
796 unsigned PY_LONG_LONG *p = va_arg(*p_va, unsigned PY_LONG_LONG *); in convertsimple()
797 unsigned PY_LONG_LONG ival; in convertsimple()
/external/python/cpython2/Modules/
D_lsprof.c17 static PY_LONG_LONG
48 static PY_LONG_LONG
52 PY_LONG_LONG ret; in hpTimer()
79 PY_LONG_LONG tt;
80 PY_LONG_LONG it;
90 PY_LONG_LONG tt; /* total time in this entry */
91 PY_LONG_LONG it; /* inline time in this entry (not in subcalls) */
99 PY_LONG_LONG t0;
100 PY_LONG_LONG subt;
130 static PY_LONG_LONG CallExternalTimer(ProfilerObject *pObj) in CallExternalTimer()
[all …]
D_struct.c84 typedef struct { char c; PY_LONG_LONG x; } s_long_long;
85 #define LONG_LONG_ALIGN (sizeof(s_long_long) - sizeof(PY_LONG_LONG))
235 get_longlong(PyObject *v, PY_LONG_LONG *p) in get_longlong()
237 PY_LONG_LONG x; in get_longlong()
245 if (x == (PY_LONG_LONG)-1 && PyErr_Occurred()) in get_longlong()
254 get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p) in get_ulonglong()
256 unsigned PY_LONG_LONG x; in get_ulonglong()
264 if (x == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred()) in get_ulonglong()
431 PY_LONG_LONG x; in nu_longlong()
434 return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); in nu_longlong()
[all …]
Daddrinfo.h145 #define _SS_ALIGNSIZE (sizeof(PY_LONG_LONG))
162 PY_LONG_LONG __ss_align; /* force desired structure storage alignment */
Dresource.c136 (PY_LONG_LONG) rl.rlim_cur, in resource_getrlimit()
137 (PY_LONG_LONG) rl.rlim_max); in resource_getrlimit()
336 v = PyLong_FromLongLong((PY_LONG_LONG) RLIM_INFINITY); in initresource()
D_testcapimodule.c66 CHECK_SIZEOF(SIZEOF_LONG_LONG, PY_LONG_LONG); in test_config()
534 #define TYPENAME PY_LONG_LONG
729 PY_LONG_LONG value; in test_long_long_and_overflow()
893 PY_LONG_LONG value; in test_L_code()
1161 PY_LONG_LONG value; in getargs_L()
1170 unsigned PY_LONG_LONG value; in getargs_K()
2005 CHECK_1_FORMAT("%llu", unsigned PY_LONG_LONG); in test_string_from_format()
2006 CHECK_1_FORMAT("%lld", PY_LONG_LONG); in test_string_from_format()
2615 PY_LONG_LONG longlong_member;
2616 unsigned PY_LONG_LONG ulonglong_member;
Dsha512module.c22 #ifdef PY_LONG_LONG /* If no PY_LONG_LONG, don't compile anything! */
37 typedef unsigned PY_LONG_LONG SHA_INT64; /* 64-bit integer */
124 ( ((((x) & Py_ULL(0xFFFFFFFFFFFFFFFF))>>((unsigned PY_LONG_LONG)(y) & 63)) | \
125 ((x)<<((unsigned PY_LONG_LONG)(64-((y) & 63))))) & Py_ULL(0xFFFFFFFFFFFFFFFF))
129 #define R(x, n) (((x) & Py_ULL(0xFFFFFFFFFFFFFFFF)) >> ((unsigned PY_LONG_LONG)n))
Dmmapmodule.c97 PY_LONG_LONG offset;
397 PY_LONG_LONG size; in mmap_size_method()
408 size = (((PY_LONG_LONG)high)<<32) + low; in mmap_size_method()
1263 PY_LONG_LONG offset = 0, size; in new_mmap_object()
1374 size = (((PY_LONG_LONG) high) << 32) + low; in new_mmap_object()
Dposixmodule.c520 _PyInt_FromDev(PY_LONG_LONG v) in _PyInt_FromDev()
1451 ival = PyLong_FromLongLong((PY_LONG_LONG)sec); in fill_time()
1480 PyLong_FromLongLong((PY_LONG_LONG)st->st_ino)); in _pystat_fromstructstat()
1499 PyLong_FromLongLong((PY_LONG_LONG)st->st_size)); in _pystat_fromstructstat()
3441 return Py_BuildValue("L", (PY_LONG_LONG) spawnval); in posix_spawnv()
3583 res = Py_BuildValue("L", (PY_LONG_LONG) spawnval); in posix_spawnve()
6713 PY_LONG_LONG pos, res; in posix_lseek()
7465 PyLong_FromLongLong((PY_LONG_LONG) st.f_blocks)); in _pystatvfs_fromstructstatvfs()
7467 PyLong_FromLongLong((PY_LONG_LONG) st.f_bfree)); in _pystatvfs_fromstructstatvfs()
7469 PyLong_FromLongLong((PY_LONG_LONG) st.f_bavail)); in _pystatvfs_fromstructstatvfs()
[all …]
/external/python/cpython2/PC/
Dpyconfig.h286 #define PY_LONG_LONG long long macro
313 #ifndef PY_LONG_LONG
314 # define PY_LONG_LONG __int64 macro
424 #define PY_UINT64_T unsigned PY_LONG_LONG
441 #define PY_INT64_T PY_LONG_LONG
/external/python/cpython2/Modules/_io/
D_iomodule.h102 typedef PY_LONG_LONG Py_off_t;
107 # define PY_OFF_T_COMPAT PY_LONG_LONG /* type compatible with off_t */
126 # define PY_OFF_T_COMPAT PY_LONG_LONG
/external/python/cpython2/Doc/c-api/
Dlong.rst68 .. c:function:: PyObject* PyLong_FromLongLong(PY_LONG_LONG v)
74 .. c:function:: PyObject* PyLong_FromUnsignedLongLong(unsigned PY_LONG_LONG v)
149 .. c:function:: PY_LONG_LONG PyLong_AsLongLongAndOverflow(PyObject *pylong, int *overflow)
186 .. c:function:: PY_LONG_LONG PyLong_AsLongLong(PyObject *pylong)
198 .. c:function:: unsigned PY_LONG_LONG PyLong_AsUnsignedLongLong(PyObject *pylong)
223 .. c:function:: unsigned PY_LONG_LONG PyLong_AsUnsignedLongLongMask(PyObject *io)
Dint.rst108 .. c:function:: unsigned PY_LONG_LONG PyInt_AsUnsignedLongLongMask(PyObject *io)
Darg.rst187 ``L`` (integer) [PY_LONG_LONG]
192 ``K`` (integer) [unsigned PY_LONG_LONG]
498 ``L`` (long) [PY_LONG_LONG]
502 ``K`` (long) [unsigned PY_LONG_LONG]
/external/python/cpython2/Objects/
Dlongobject.c787 return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)p); in PyLong_FromVoidPtr()
818 PY_LONG_LONG x; in PyLong_AsVoidPtr()
841 #define PY_ABS_LLONG_MIN (0-(unsigned PY_LONG_LONG)PY_LLONG_MIN)
846 PyLong_FromLongLong(PY_LONG_LONG ival) in PyLong_FromLongLong()
849 unsigned PY_LONG_LONG abs_ival; in PyLong_FromLongLong()
850 unsigned PY_LONG_LONG t; /* unsigned so >> doesn't propagate sign bit */ in PyLong_FromLongLong()
857 abs_ival = (unsigned PY_LONG_LONG)(-1-ival) + 1; in PyLong_FromLongLong()
861 abs_ival = (unsigned PY_LONG_LONG)ival; in PyLong_FromLongLong()
889 PyLong_FromUnsignedLongLong(unsigned PY_LONG_LONG ival) in PyLong_FromUnsignedLongLong()
892 unsigned PY_LONG_LONG t; in PyLong_FromUnsignedLongLong()
[all …]
Dintobject.c303 unsigned PY_LONG_LONG
308 unsigned PY_LONG_LONG val; in PyInt_AsUnsignedLongLongMask()
318 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
323 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
329 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
337 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
/external/python/cpython2/Modules/_sqlite/
Dutil.c143 PY_LONG_LONG value = PyLong_AsLongLongAndOverflow(py_val, &overflow); in _pysqlite_long_as_int64()

12