Lines Matching refs:PyLong_FromLong

146         PyObject* anint = PyLong_FromLong(i);  in test_list_api()
187 v = PyLong_FromLong(i); in test_dict_inner()
203 o = PyLong_FromLong(i); in test_dict_inner()
406 #define F_S_TO_PY PyLong_FromLong
484 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow()
487 one = PyLong_FromLong(1L); in test_long_and_overflow()
528 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow()
531 one = PyLong_FromLong(1L); in test_long_and_overflow()
585 num = PyLong_FromLong(LONG_MAX); in test_long_and_overflow()
600 num = PyLong_FromLong(LONG_MIN); in test_long_and_overflow()
651 one = PyLong_FromLong(1L); in test_long_long_and_overflow()
695 one = PyLong_FromLong(1L); in test_long_long_and_overflow()
858 num = PyLong_FromLong(42); in test_L_code()
873 num = PyLong_FromLong(42); in test_L_code()
1089 return PyLong_FromLong((long)value); in getargs_h()
1125 return PyLong_FromLong((long)value); in getargs_i()
1134 return PyLong_FromLong(value); in getargs_l()
1152 return PyLong_FromLong(value); in getargs_p()
1293 return PyLong_FromLong((unsigned char)c); in getargs_c()
1302 return PyLong_FromLong(c); in getargs_C()
2114 plong = PyLong_FromLong(testcases[i].input); in test_long_numbits()
2158 v = PyLong_FromLong(i); in raise_exception()
2742 single = PyLong_FromLong(i); in profile_int()
2753 single = PyLong_FromLong(i+1000000); in profile_int()
2767 multiple[i] = PyLong_FromLong(i+1000000); in profile_int()
2785 multiple[i] = PyLong_FromLong(i+1000000); in profile_int()
2802 multiple[i] = PyLong_FromLong(i+1000); in profile_int()
2813 op1 = PyLong_FromLong(1); in profile_int()
2824 op1 = PyLong_FromLong(1000); in profile_int()
3113 return PyLong_FromLong(r); in run_in_subinterp()
3280 PyObject *obj = PyLong_FromLong(0); in test_xincref_doesnt_leak()
3291 PyObject *obj = PyLong_FromLong(0); in test_incref_doesnt_leak()
3302 Py_XDECREF(PyLong_FromLong(0)); in test_xdecref_doesnt_leak()
3309 Py_DECREF(PyLong_FromLong(0)); in test_decref_doesnt_leak()
3316 PyObject *obj = PyLong_FromLong(0); in test_incref_decref_API()
4167 return PyLong_FromLong(tstate->recursion_depth - 1); in get_recursion_depth()
4468 return PyLong_FromLong(status); in py_w_stopcode()
5337 PyModule_AddObject(m, "CHAR_MAX", PyLong_FromLong(CHAR_MAX)); in PyInit__testcapi()
5338 PyModule_AddObject(m, "CHAR_MIN", PyLong_FromLong(CHAR_MIN)); in PyInit__testcapi()
5339 PyModule_AddObject(m, "UCHAR_MAX", PyLong_FromLong(UCHAR_MAX)); in PyInit__testcapi()
5340 PyModule_AddObject(m, "SHRT_MAX", PyLong_FromLong(SHRT_MAX)); in PyInit__testcapi()
5341 PyModule_AddObject(m, "SHRT_MIN", PyLong_FromLong(SHRT_MIN)); in PyInit__testcapi()
5342 PyModule_AddObject(m, "USHRT_MAX", PyLong_FromLong(USHRT_MAX)); in PyInit__testcapi()
5343 PyModule_AddObject(m, "INT_MAX", PyLong_FromLong(INT_MAX)); in PyInit__testcapi()
5344 PyModule_AddObject(m, "INT_MIN", PyLong_FromLong(INT_MIN)); in PyInit__testcapi()
5346 PyModule_AddObject(m, "LONG_MAX", PyLong_FromLong(LONG_MAX)); in PyInit__testcapi()
5347 PyModule_AddObject(m, "LONG_MIN", PyLong_FromLong(LONG_MIN)); in PyInit__testcapi()