Home
last modified time | relevance | path

Searched refs:PyInt_AS_LONG (Results 1 – 25 of 32) sorted by relevance

12

/external/python/cpython2/Objects/
Dintobject.c150 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsLong()
179 val = PyInt_AS_LONG(io); in PyInt_AsLong()
214 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsSsize_t()
251 val = PyInt_AS_LONG(io); in PyInt_AsSsize_t()
266 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongMask()
296 val = PyInt_AS_LONG(io); in PyInt_AsUnsignedLongMask()
311 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongLongMask()
341 val = PyInt_AS_LONG(io); in PyInt_AsUnsignedLongLongMask()
427 lng = PyInt_AS_LONG(obj); \
861 vv = PyLong_FromLong(PyInt_AS_LONG(v)); in int_lshift()
[all …]
Dlongobject.c805 x = PyInt_AS_LONG(vv); in PyLong_AsVoidPtr()
821 x = PyInt_AS_LONG(vv); in PyLong_AsVoidPtr()
1155 *a = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(v)); in convert_binop()
1165 *b = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(w)); in convert_binop()
3418 c = (PyLongObject *)PyLong_FromLong(PyInt_AS_LONG(x)); in long_pow()
3938 *pw = PyLong_FromLong(PyInt_AS_LONG(*pw)); in long_coerce()
Dfloatobject.c316 *dbl = (double)PyInt_AS_LONG(obj); in convert_to_double()
443 long jj = PyInt_AS_LONG(w); in float_richcompare()
Dcomplexobject.c498 pc->real = PyInt_AS_LONG(obj); in to_complex()
Dabstract.c1728 long value = PyInt_AS_LONG(res);
1755 long value = PyInt_AS_LONG(int_instance);
Dunicodeobject.c4198 long value = PyInt_AS_LONG(x); in PyUnicode_DecodeCharmap()
4545 long value = PyInt_AS_LONG(x); in charmapencode_lookup()
4623 outstart[(*outpos)++] = (char)PyInt_AS_LONG(rep); in charmapencode_output()
4965 long value = PyInt_AS_LONG(x); in charmaptranslate_lookup()
5029 *(*outp)++ = (Py_UNICODE)PyInt_AS_LONG(*res); in charmaptranslate_output()
/external/python/cpython2/Python/
Dsymtable.c92 PyInt_AS_LONG(ste->ste_id), ste->ste_lineno); in ste_repr()
313 return (PyInt_AS_LONG(v) >> SCOPE_OFF) & SCOPE_MASK; in PyST_GetScope()
460 flags = PyInt_AS_LONG(v); in analyze_cells()
538 flags = PyInt_AS_LONG(v); in update_symbols()
541 i = PyInt_AS_LONG(w); in update_symbols()
568 PyInt_AS_LONG(o) & (DEF_BOUND | DEF_GLOBAL)) { in update_symbols()
569 long i = PyInt_AS_LONG(o) | DEF_FREE_CLASS; in update_symbols()
668 long flags = PyInt_AS_LONG(v); in analyze_block()
890 val = PyInt_AS_LONG(o); in symtable_add_def()
919 val |= PyInt_AS_LONG(o); in symtable_add_def()
Dceval.c1467 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1468 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1501 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1502 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1715 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1716 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1747 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1748 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
2131 why = (enum why_code) PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
2558 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
[all …]
Dbltinmodule.c2343 long i_result = PyInt_AS_LONG(result); in builtin_sum()
2355 long b = PyInt_AS_LONG(item); in builtin_sum()
2397 f_result += (double)PyInt_AS_LONG(item); in builtin_sum()
Dcompile.c392 scope = (PyInt_AS_LONG(v) >> SCOPE_OFF) & SCOPE_MASK; in dictbytype()
394 if (scope == scope_type || PyInt_AS_LONG(v) & flag) { in dictbytype()
1256 return PyInt_AS_LONG(v); in compiler_lookup_arg()
3753 i = PyInt_AS_LONG(v); in dict_keys_inorder()
Dmarshal.c240 long x = PyInt_AS_LONG((PyIntObject *)v); in w_object()
/external/python/cpython2/Include/
Dintobject.h52 #define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival) macro
/external/python/cpython2/Modules/
Dcgensupport.c72 *p_arg = PyInt_AS_LONG((PyIntObject *)v); in extractdouble()
93 *p_arg = (float) PyInt_AS_LONG((PyIntObject *)v); in extractfloat()
DcPickle.c762 c_value = PyInt_AS_LONG((PyIntObject*)value); in get()
1009 long l = PyInt_AS_LONG((PyIntObject *)args); in save_bool()
1025 long l = PyInt_AS_LONG((PyIntObject *)args); in save_int()
2254 code = PyInt_AS_LONG(py_code); in save_global()
2908 ik = PyInt_AS_LONG((PyIntObject*)k); in Pickle_getvalue()
2928 ik = PyInt_AS_LONG((PyIntObject *)k); in Pickle_getvalue()
2957 ik = PyInt_AS_LONG((PyIntObject *) in Pickle_getvalue()
2973 ik = PyInt_AS_LONG((PyIntObject*)k); in Pickle_getvalue()
Ditertoolsmodule.c3316 PyInt_AS_LONG(long_step) != 1) { in count_new()
3328 (PyInt_Check(long_step) && PyInt_AS_LONG(long_step) == 1)); in count_new()
3403 if (PyInt_Check(lz->long_step) && PyInt_AS_LONG(lz->long_step) == 1) { in count_repr()
D_testcapimodule.c104 if (PyInt_AS_LONG(anint) != NLIST-1-i) { in test_list_api()
139 i = PyInt_AS_LONG(v) + 1; in test_dict_inner()
D_hotshot.c804 fileno = PyInt_AS_LONG(PyTuple_GET_ITEM(obj, 0)); in get_fileno()
D_tkinter.c1100 return Tcl_NewLongObj(PyInt_AS_LONG(value)); in AsObj()
2173 return PyBool_FromLong(PyInt_AS_LONG(arg)); in Tkapp_GetBoolean()
/external/python/cpython2/Doc/c-api/
Dint.rst94 .. c:function:: long PyInt_AS_LONG(PyObject *io)
Ddict.rst183 int i = PyInt_AS_LONG(value) + 1;
/external/python/cpython2/Modules/_io/
D_iomodule.c555 result = (Py_off_t) PyInt_AS_LONG(value); in PyNumber_AsOff_t()
/external/libxml2/python/
Dtypes.c611 ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj)); in libxml_xmlXPathObjectPtrConvert()
/external/python/cpython2/Doc/data/
Drefcounts.dat541 PyInt_AS_LONG:long:::
542 PyInt_AS_LONG:PyIntObject*:io:0:
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c1400 length = PyInt_AS_LONG(proto); in PyCArrayType_new()
2319 stgdict->flags = PyInt_AS_LONG(ob) | TYPEFLAG_ISPOINTER; in make_funcptrtype_dict()
3701 flag = PyInt_AS_LONG(PyTuple_GET_ITEM(item, 0)); in _build_callargs()
Dcallproc.c656 pa->value.i = PyInt_AS_LONG(obj); in ConvParam()

12