Searched refs:PyFloatObject (Results 1 – 7 of 7) sorted by relevance
11 .. c:type:: PyFloatObject26 Return true if its argument is a :c:type:`PyFloatObject` or a subtype of27 :c:type:`PyFloatObject`.35 Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype of36 :c:type:`PyFloatObject`.43 Create a :c:type:`PyFloatObject` object based on the string value in *str*, or50 Create a :c:type:`PyFloatObject` object from *v*, or *NULL* on failure.99 .. c:function:: void PyFloat_AsString(char *buf, PyFloatObject *v)111 .. c:function:: void PyFloat_AsReprString(char *buf, PyFloatObject *v)
17 } PyFloatObject; typedef56 #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)62 PyAPI_FUNC(void) PyFloat_AsReprString(char*, PyFloatObject *v);69 PyAPI_FUNC(void) PyFloat_AsString(char*, PyFloatObject *v);
26 #define N_FLOATOBJECTS ((BLOCK_SIZE - BHEAD_SIZE) / sizeof(PyFloatObject))30 PyFloatObject objects[N_FLOATOBJECTS];36 static PyFloatObject *free_list = NULL;38 static PyFloatObject *41 PyFloatObject *p, *q; in fill_free_list()43 p = (PyFloatObject *) PyMem_MALLOC(sizeof(PyFloatBlock)); in fill_free_list()45 return (PyFloatObject *) PyErr_NoMemory(); in fill_free_list()144 register PyFloatObject *op; in PyFloat_FromDouble()151 free_list = (PyFloatObject *)Py_TYPE(op); in PyFloat_FromDouble()249 float_dealloc(PyFloatObject *op) in float_dealloc()[all …]
1812 PyFloatObject *po = (PyFloatObject *)o;
68 *p_arg = PyFloat_AS_DOUBLE((PyFloatObject *)v); in extractdouble()89 *p_arg = (float) PyFloat_AS_DOUBLE((PyFloatObject *)v); in extractfloat()
1094 double dx = PyFloat_AS_DOUBLE((PyFloatObject *)arg); in math_factorial()
1190 double x = PyFloat_AS_DOUBLE((PyFloatObject *)args); in save_float()