Home
last modified time | relevance | path

Searched refs:PY_LONG_LONG (Results 1 – 25 of 37) 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
258 EXPORT(PY_LONG_LONG) _testfunc_q_bhilfdq(signed char b, short h, int i, long l, float f, in _testfunc_q_bhilfdq()
259 double d, PY_LONG_LONG q) in _testfunc_q_bhilfdq()
261 return (PY_LONG_LONG)(b + h + i + l + f + d + q); in _testfunc_q_bhilfdq()
264 EXPORT(PY_LONG_LONG) _testfunc_q_bhilfd(signed char b, short h, int i, long l, float f, double d) in _testfunc_q_bhilfd()
266 return (PY_LONG_LONG)(b + h + i + l + f + d); in _testfunc_q_bhilfd()
279 EXPORT(PY_LONG_LONG) _testfunc_callback_q_qf(PY_LONG_LONG value, in _testfunc_callback_q_qf()
280 PY_LONG_LONG (*func)(PY_LONG_LONG)) in _testfunc_callback_q_qf() argument
282 PY_LONG_LONG sum = 0; in _testfunc_callback_q_qf()
[all …]
Dcfield.c401 get_longlong(PyObject *v, PY_LONG_LONG *p) in get_longlong()
403 PY_LONG_LONG x; in get_longlong()
419 get_ulonglong(PyObject *v, unsigned PY_LONG_LONG *p) in get_ulonglong()
421 unsigned PY_LONG_LONG x; in get_ulonglong()
428 if (x == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred()) in get_ulonglong()
909 PY_LONG_LONG val; in q_set()
910 PY_LONG_LONG x; in q_set()
914 x = SET(PY_LONG_LONG, x, val, size); in q_set()
922 PY_LONG_LONG val; in q_set_sw()
923 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.h49 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()
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))
D_testcapimodule.c74 CHECK_SIZEOF(SIZEOF_LONG_LONG, PY_LONG_LONG); in test_config()
540 #define TYPENAME PY_LONG_LONG
735 PY_LONG_LONG value; in test_long_long_and_overflow()
899 PY_LONG_LONG value; in test_L_code()
1169 PY_LONG_LONG value; in getargs_L()
1178 unsigned PY_LONG_LONG value; in getargs_K()
2103 CHECK_1_FORMAT("%llu", unsigned PY_LONG_LONG); in test_string_from_format()
2104 CHECK_1_FORMAT("%lld", PY_LONG_LONG); in test_string_from_format()
2810 PY_LONG_LONG longlong_member;
2811 unsigned PY_LONG_LONG ulonglong_member;
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()
1244 PY_LONG_LONG offset = 0, size; in new_mmap_object()
1355 size = (((PY_LONG_LONG) high) << 32) + low; in new_mmap_object()
/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/cpython3/PC/
Dpyconfig.h219 #define PY_LONG_LONG long long macro
245 #ifndef PY_LONG_LONG
246 # define PY_LONG_LONG __int64 macro
/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)
/external/python/cffi/c/
D_cffi_backend.c762 static PY_LONG_LONG
780 PY_LONG_LONG res; in _my_PyLong_AsLongLong()
804 static unsigned PY_LONG_LONG
817 return (unsigned PY_LONG_LONG)(PY_LONG_LONG)value1; in _my_PyLong_AsUnsignedLongLong()
833 unsigned PY_LONG_LONG res; in _my_PyLong_AsUnsignedLongLong()
839 return (unsigned PY_LONG_LONG)-1; in _my_PyLong_AsUnsignedLongLong()
843 return (unsigned PY_LONG_LONG)-1; in _my_PyLong_AsUnsignedLongLong()
850 res = (unsigned PY_LONG_LONG)-1; in _my_PyLong_AsUnsignedLongLong()
859 return (unsigned PY_LONG_LONG)-1; in _my_PyLong_AsUnsignedLongLong()
871 static PY_LONG_LONG
[all …]
/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.c306 unsigned PY_LONG_LONG
311 unsigned PY_LONG_LONG val; in PyInt_AsUnsignedLongLongMask()
321 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
326 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
332 return (unsigned PY_LONG_LONG)-1; in PyInt_AsUnsignedLongLongMask()
340 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()
/external/python/cpython3/Include/
Dpyport.h65 #ifndef PY_LONG_LONG
66 #define PY_LONG_LONG long long macro

12