Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
Dintobject.c150 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsLong()
182 val = PyInt_AS_LONG(io); in PyInt_AsLong()
217 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsSsize_t()
254 val = PyInt_AS_LONG(io); in PyInt_AsSsize_t()
269 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongMask()
299 val = PyInt_AS_LONG(io); in PyInt_AsUnsignedLongMask()
314 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongLongMask()
344 val = PyInt_AS_LONG(io); in PyInt_AsUnsignedLongLongMask()
430 lng = PyInt_AS_LONG(obj); \
864 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.c315 *dbl = (double)PyInt_AS_LONG(obj); in convert_to_double()
442 long jj = PyInt_AS_LONG(w); in float_richcompare()
Dcomplexobject.c498 pc->real = PyInt_AS_LONG(obj); in to_complex()
Dabstract.c1725 long value = PyInt_AS_LONG(res);
1752 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()
315 return (PyInt_AS_LONG(v) >> SCOPE_OFF) & SCOPE_MASK; in PyST_GetScope()
462 flags = PyInt_AS_LONG(v); in analyze_cells()
540 flags = PyInt_AS_LONG(v); in update_symbols()
543 i = PyInt_AS_LONG(w); in update_symbols()
570 PyInt_AS_LONG(o) & (DEF_BOUND | DEF_GLOBAL)) { in update_symbols()
571 long i = PyInt_AS_LONG(o) | DEF_FREE_CLASS; in update_symbols()
670 long flags = PyInt_AS_LONG(v); in analyze_block()
896 val = PyInt_AS_LONG(o); in symtable_add_def()
925 val |= PyInt_AS_LONG(o); in symtable_add_def()
Dceval.c1479 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1480 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1513 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1514 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1727 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1728 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
1759 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
1760 b = PyInt_AS_LONG(w); in PyEval_EvalFrameEx()
2143 why = (enum why_code) PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
2570 a = PyInt_AS_LONG(v); in PyEval_EvalFrameEx()
[all …]
Dbltinmodule.c2344 long i_result = PyInt_AS_LONG(result); in builtin_sum()
2356 long b = PyInt_AS_LONG(item); in builtin_sum()
2403 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()
1265 return PyInt_AS_LONG(v); in compiler_lookup_arg()
3754 i = PyInt_AS_LONG(v); in dict_keys_inorder()
Dmarshal.c240 long x = PyInt_AS_LONG((PyIntObject *)v); in w_object()
/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()
1019 long l = PyInt_AS_LONG((PyIntObject *)args); in save_bool()
1035 long l = PyInt_AS_LONG((PyIntObject *)args); in save_int()
2270 code = PyInt_AS_LONG(py_code); in save_global()
2924 ik = PyInt_AS_LONG((PyIntObject*)k); in Pickle_getvalue()
2944 ik = PyInt_AS_LONG((PyIntObject *)k); in Pickle_getvalue()
2973 ik = PyInt_AS_LONG((PyIntObject *) in Pickle_getvalue()
2989 ik = PyInt_AS_LONG((PyIntObject*)k); in Pickle_getvalue()
Ditertoolsmodule.c3306 PyInt_AS_LONG(long_step) != 1) { in count_new()
3318 (PyInt_Check(long_step) && PyInt_AS_LONG(long_step) == 1)); in count_new()
3393 if (PyInt_Check(lz->long_step) && PyInt_AS_LONG(lz->long_step) == 1) { in count_repr()
D_testcapimodule.c112 if (PyInt_AS_LONG(anint) != NLIST-1-i) { in test_list_api()
147 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()
2177 return PyBool_FromLong(PyInt_AS_LONG(arg)); in Tkapp_GetBoolean()
/external/python/cpython2/Include/
Dintobject.h55 #define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival) macro
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc294 *out = PyInt_AS_LONG(v); in ConvertOneInt64()
323 i = PyInt_AS_LONG(v); in ConvertOneInt32()
378 *out = PyInt_AS_LONG(v); in ConvertOneFloat()
/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/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc116 *out = PyInt_AS_LONG(v); in PyIntToDataType()
/external/python/cpython2/Doc/data/
Drefcounts.dat541 PyInt_AS_LONG:long:::
542 PyInt_AS_LONG:PyIntObject*:io:0:

12