Lines Matching refs:cval

219 complex_subtype_from_c_complex(PyTypeObject *type, Py_complex cval)  in complex_subtype_from_c_complex()  argument
225 ((PyComplexObject *)op)->cval = cval; in complex_subtype_from_c_complex()
230 PyComplex_FromCComplex(Py_complex cval) in PyComplex_FromCComplex() argument
239 op->cval = cval; in PyComplex_FromCComplex()
265 return ((PyComplexObject *)op)->cval.real; in PyComplex_RealAsDouble()
276 return ((PyComplexObject *)op)->cval.imag; in PyComplex_ImagAsDouble()
326 return ((PyComplexObject *)op)->cval; in PyComplex_AsCComplex()
337 cv = ((PyComplexObject *)newop)->cval; in PyComplex_AsCComplex()
371 if (v->cval.real == 0. && copysign(1.0, v->cval.real)==1.0) { in complex_repr()
375 im = PyOS_double_to_string(v->cval.imag, format_code, in complex_repr()
384 pre = PyOS_double_to_string(v->cval.real, format_code, in complex_repr()
392 im = PyOS_double_to_string(v->cval.imag, format_code, in complex_repr()
413 hashreal = (Py_uhash_t)_Py_HashDouble(v->cval.real); in complex_hash()
416 hashimag = (Py_uhash_t)_Py_HashDouble(v->cval.imag); in complex_hash()
434 c = ((PyComplexObject *)(obj))->cval; \
576 neg.real = -v->cval.real; in complex_neg()
577 neg.imag = -v->cval.imag; in complex_neg()
589 return PyComplex_FromCComplex(v->cval); in complex_pos()
597 result = _Py_c_abs(v->cval); in complex_abs()
610 return v->cval.real != 0.0 || v->cval.imag != 0.0; in complex_bool()
690 c = ((PyComplexObject *)self)->cval; in complex_conjugate()
703 Py_complex c = v->cval; in complex_getnewargs()
744 {"real", T_DOUBLE, offsetof(PyComplexObject, cval.real), READONLY,
746 {"imag", T_DOUBLE, offsetof(PyComplexObject, cval.imag), READONLY,
997 cr = ((PyComplexObject*)r)->cval; in complex_new_impl()
1024 ci = ((PyComplexObject*)i)->cval; in complex_new_impl()