Home
last modified time | relevance | path

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

/external/python/cpython3/Doc/c-api/
Dfloat.rst11 .. c:type:: PyFloatObject
24 Return true if its argument is a :c:type:`PyFloatObject` or a subtype of
25 :c:type:`PyFloatObject`.
30 Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype of
31 :c:type:`PyFloatObject`.
36 Create a :c:type:`PyFloatObject` object based on the string value in *str*, or
42 Create a :c:type:`PyFloatObject` object from *v*, or ``NULL`` on failure.
/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.c25 #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()
[all …]
Dabstract.c1809 PyFloatObject *po = (PyFloatObject *)o;
/external/python/cpython3/Objects/
Dfloatobject.c28 static PyFloatObject *free_list = NULL;
118 PyFloatObject *op = free_list; in PyFloat_FromDouble()
120 free_list = (PyFloatObject *) Py_TYPE(op); in PyFloat_FromDouble()
123 op = (PyFloatObject*) PyObject_MALLOC(sizeof(PyFloatObject)); in PyFloat_FromDouble()
217 float_dealloc(PyFloatObject *op) in float_dealloc()
326 float_repr(PyFloatObject *v) in float_repr()
537 float_hash(PyFloatObject *v) in float_hash()
810 float_neg(PyFloatObject *v) in float_neg()
816 float_abs(PyFloatObject *v) in float_abs()
822 float_bool(PyFloatObject *v) in float_bool()
[all …]
/external/python/cpython3/Include/
Dfloatobject.h18 } PyFloatObject; typedef
51 #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
/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.c1200 double x = PyFloat_AS_DOUBLE((PyFloatObject *)args); in save_float()
/external/python/cpython3/Modules/
Dmathmodule.c2065 double dx = PyFloat_AS_DOUBLE((PyFloatObject *)arg); in math_factorial()
D_pickle.c2244 double x = PyFloat_AS_DOUBLE((PyFloatObject *)obj); in save_float()
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst85 } PyFloatObject;
/external/python/cpython3/Tools/c-analyzer/
DTODO96 Objects/floatobject.c:free_list static PyFloatObject *free_list
Dknown.tsv291 Objects/floatobject.c - free_list variable static PyFloatObject *free_list