Home
last modified time | relevance | path

Searched refs:PyFloatObject (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Doc/c-api/
Dfloat.rst11 .. c:type:: PyFloatObject
26 Return true if its argument is a :c:type:`PyFloatObject` or a subtype of
27 :c:type:`PyFloatObject`.
35 Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype of
36 :c:type:`PyFloatObject`.
43 Create a :c:type:`PyFloatObject` object based on the string value in *str*, or
50 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)
/external/python/cpython2/Include/
Dfloatobject.h17 } PyFloatObject; typedef
56 #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);
/external/python/cpython2/Objects/
Dfloatobject.c26 #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 …]
Dabstract.c1812 PyFloatObject *po = (PyFloatObject *)o;
/external/python/cpython2/Modules/
Dcgensupport.c68 *p_arg = PyFloat_AS_DOUBLE((PyFloatObject *)v); in extractdouble()
89 *p_arg = (float) PyFloat_AS_DOUBLE((PyFloatObject *)v); in extractfloat()
Dmathmodule.c1094 double dx = PyFloat_AS_DOUBLE((PyFloatObject *)arg); in math_factorial()
DcPickle.c1190 double x = PyFloat_AS_DOUBLE((PyFloatObject *)args); in save_float()