Home
last modified time | relevance | path

Searched refs:PyIntOrLong_FromLong (Results 1 – 20 of 20) sorted by relevance

/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/src/
H A Dgmpy2_sign.c41 return PyIntOrLong_FromLong(res); in GMPy_Integer_Sign()
57 return PyIntOrLong_FromLong(res); in GMPy_Rational_Sign()
77 result = PyIntOrLong_FromLong(sign); in GMPy_Real_Sign()
H A Dgmpy2_cmp.c37 if (c < 0) return PyIntOrLong_FromLong(-1); in _return_cmp()
38 if (c > 0) return PyIntOrLong_FromLong(1); in _return_cmp()
39 return PyIntOrLong_FromLong(0); in _return_cmp()
44 if (c < 0) return PyIntOrLong_FromLong(1); in _return_negated_cmp()
45 if (c > 0) return PyIntOrLong_FromLong(-1); in _return_negated_cmp()
46 return PyIntOrLong_FromLong(0); in _return_negated_cmp()
H A Dgmpy2_context.c381 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.mpfr_prec)); in GMPy_CTXT_Repr_Slot()
385 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.real_prec)); in GMPy_CTXT_Repr_Slot()
389 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.imag_prec)); in GMPy_CTXT_Repr_Slot()
393 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.emax)); in GMPy_CTXT_Repr_Slot()
394 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.emin)); in GMPy_CTXT_Repr_Slot()
1040 return PyIntOrLong_FromLong((long)(self->ctx.mpfr_round)); in GMPy_CTXT_Get_round()
1082 return PyIntOrLong_FromLong((long)GET_REAL_ROUND(self)); in GMPy_CTXT_Get_real_round()
1113 return PyIntOrLong_FromLong((long)GET_IMAG_ROUND(self)); in GMPy_CTXT_Get_imag_round()
1144 return PyIntOrLong_FromLong(self->ctx.emin); in GMPy_CTXT_Get_emin()
1172 return PyIntOrLong_FromLong(self->ctx.emax); in GMPy_CTXT_Get_emax()
H A Dgmpy2.h342 #define PyIntOrLong_FromLong PyLong_FromLong macro
357 #define PyIntOrLong_FromLong PyInt_FromLong macro
H A Dgmpy2_mpmath.c43 if (!(tsign = PyIntOrLong_FromLong(sign))) { in mpmath_build_mpf()
60 PyTuple_SET_ITEM(tup, 2, (exp)?exp:PyIntOrLong_FromLong(0)); in mpmath_build_mpf()
H A Dgmpy2_mpz_misc.c1470 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Jacobi()
1506 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Legendre()
1535 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Kronecker()
1656 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_MPZ_Method_SubScript()
H A Dgmpy2_xmpz_misc.c186 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_XMPZ_Method_SubScript()
H A Dgmpy2_mpfr_misc.c563 return PyIntOrLong_FromLong((long)self->rc); in GMPy_MPFR_GetRc_Attrib()
H A Dgmpy2_math.c1705 PyTuple_SET_ITEM(result, 1, PyIntOrLong_FromLong((long)signp)); in GMPy_Real_Lgamma()
1750 PyTuple_SET_ITEM(result, 1, PyIntOrLong_FromLong(quobits)); in GMPy_Real_RemQuo()
/dports/math/py-gmpy2/gmpy2-2.1.1/src/
H A Dgmpy2_sign.c39 return PyIntOrLong_FromLong(res); in GMPy_Integer_Sign()
55 return PyIntOrLong_FromLong(res); in GMPy_Rational_Sign()
75 result = PyIntOrLong_FromLong(sign); in GMPy_Real_Sign()
H A Dgmpy2_cmp.c35 if (c < 0) return PyIntOrLong_FromLong(-1); in _return_cmp()
36 if (c > 0) return PyIntOrLong_FromLong(1); in _return_cmp()
37 return PyIntOrLong_FromLong(0); in _return_cmp()
42 if (c < 0) return PyIntOrLong_FromLong(1); in _return_negated_cmp()
43 if (c > 0) return PyIntOrLong_FromLong(-1); in _return_negated_cmp()
44 return PyIntOrLong_FromLong(0); in _return_negated_cmp()
H A Dgmpy2_mpmath.c41 if (!(tsign = PyIntOrLong_FromLong(sign))) { in mpmath_build_mpf()
58 PyTuple_SET_ITEM(tup, 2, (exp)?exp:PyIntOrLong_FromLong(0)); in mpmath_build_mpf()
227 if (!(tmp = PyIntOrLong_FromLong(zbits))) { in Pympz_mpmath_normalize()
384 if (!(tmp = PyIntOrLong_FromLong(zbits))) { in Pympz_mpmath_create()
H A Dgmpy2_context.c381 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.mpfr_prec)); in GMPy_CTXT_Repr_Slot()
385 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.real_prec)); in GMPy_CTXT_Repr_Slot()
389 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.imag_prec)); in GMPy_CTXT_Repr_Slot()
393 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.emax)); in GMPy_CTXT_Repr_Slot()
394 PyTuple_SET_ITEM(tuple, i++, PyIntOrLong_FromLong(self->ctx.emin)); in GMPy_CTXT_Repr_Slot()
1045 return PyIntOrLong_FromLong((long)(self->ctx.mpfr_round)); in GMPy_CTXT_Get_round()
1087 return PyIntOrLong_FromLong((long)GET_REAL_ROUND(self)); in GMPy_CTXT_Get_real_round()
1118 return PyIntOrLong_FromLong((long)GET_IMAG_ROUND(self)); in GMPy_CTXT_Get_imag_round()
1149 return PyIntOrLong_FromLong(self->ctx.emin); in GMPy_CTXT_Get_emin()
1177 return PyIntOrLong_FromLong(self->ctx.emax); in GMPy_CTXT_Get_emax()
H A Dgmpy2.h325 #define PyIntOrLong_FromLong PyLong_FromLong macro
341 #define PyIntOrLong_FromLong PyInt_FromLong macro
H A Dgmpy2_mpz_misc.c1487 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Jacobi()
1523 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Legendre()
1552 return PyIntOrLong_FromLong(res); in GMPy_MPZ_Function_Kronecker()
1673 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_MPZ_Method_SubScript()
H A Dgmpy2_xmpz_misc.c184 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_XMPZ_Method_SubScript()
H A Dgmpy2_mpfr_misc.c563 return PyIntOrLong_FromLong((long)self->rc); in GMPy_MPFR_GetRc_Attrib()
H A Dgmpy2_math.c1687 PyTuple_SET_ITEM(result, 1, PyIntOrLong_FromLong((long)signp)); in GMPy_RealWithType_Lgamma()
1732 PyTuple_SET_ITEM(result, 1, PyIntOrLong_FromLong(quobits)); in GMPy_RealWithType_RemQuo()
/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/gmpy2/
H A Dgmpy2.h342 #define PyIntOrLong_FromLong PyLong_FromLong macro
357 #define PyIntOrLong_FromLong PyInt_FromLong macro
/dports/math/py-gmpy2/gmpy2-2.1.1/gmpy2/
H A Dgmpy2.h325 #define PyIntOrLong_FromLong PyLong_FromLong macro
341 #define PyIntOrLong_FromLong PyInt_FromLong macro