Lines Matching refs:PyFloatObject
25 #define N_FLOATOBJECTS ((BLOCK_SIZE - BHEAD_SIZE) / sizeof(PyFloatObject))
29 PyFloatObject objects[N_FLOATOBJECTS];
35 static PyFloatObject *free_list = NULL;
37 static PyFloatObject *
40 PyFloatObject *p, *q; in fill_free_list()
42 p = (PyFloatObject *) PyMem_MALLOC(sizeof(PyFloatBlock)); in fill_free_list()
44 return (PyFloatObject *) PyErr_NoMemory(); in fill_free_list()
143 register PyFloatObject *op; in PyFloat_FromDouble()
150 free_list = (PyFloatObject *)Py_TYPE(op); in PyFloat_FromDouble()
248 float_dealloc(PyFloatObject *op) in float_dealloc()
262 PyFloatObject *fo; in PyFloat_AsDouble()
266 return PyFloat_AS_DOUBLE((PyFloatObject*) op); in PyFloat_AsDouble()
278 fo = (PyFloatObject*) (*nb->nb_float) (op); in PyFloat_AsDouble()
336 PyFloat_AsString(char *buf, PyFloatObject *v) in PyFloat_AsString()
346 PyFloat_AsReprString(char *buf, PyFloatObject *v) in PyFloat_AsReprString()
356 float_print(PyFloatObject *v, FILE *fp, int flags) in float_print()
374 float_str_or_repr(PyFloatObject *v, int precision, char format_code) in float_str_or_repr()
389 float_repr(PyFloatObject *v) in float_repr()
395 float_str(PyFloatObject *v) in float_str()
630 float_hash(PyFloatObject *v) in float_hash()
941 float_neg(PyFloatObject *v) in float_neg()
947 float_abs(PyFloatObject *v) in float_abs()
953 float_nonzero(PyFloatObject *v) in float_nonzero()
1287 v = PyFloat_FromDouble(((PyFloatObject *)v)->ob_fval); in float_float()
1383 return float_str((PyFloatObject *)v); in float_hex()
1847 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1853 float_getnewargs(PyFloatObject *v) in float_getnewargs()
2120 sizeof(PyFloatObject),
2216 PyFloatObject *p; in PyFloat_ClearFreeList()
2260 PyFloatObject *p; in PyFloat_Fini()