/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/src/ |
H A D | gmpy2_sign.c | 41 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 D | gmpy2_cmp.c | 37 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 D | gmpy2_context.c | 381 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 D | gmpy2.h | 342 #define PyIntOrLong_FromLong PyLong_FromLong macro 357 #define PyIntOrLong_FromLong PyInt_FromLong macro
|
H A D | gmpy2_mpmath.c | 43 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 D | gmpy2_mpz_misc.c | 1470 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 D | gmpy2_xmpz_misc.c | 186 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_XMPZ_Method_SubScript()
|
H A D | gmpy2_mpfr_misc.c | 563 return PyIntOrLong_FromLong((long)self->rc); in GMPy_MPFR_GetRc_Attrib()
|
H A D | gmpy2_math.c | 1705 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 D | gmpy2_sign.c | 39 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 D | gmpy2_cmp.c | 35 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 D | gmpy2_mpmath.c | 41 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 D | gmpy2_context.c | 381 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 D | gmpy2.h | 325 #define PyIntOrLong_FromLong PyLong_FromLong macro 341 #define PyIntOrLong_FromLong PyInt_FromLong macro
|
H A D | gmpy2_mpz_misc.c | 1487 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 D | gmpy2_xmpz_misc.c | 184 return PyIntOrLong_FromLong(mpz_tstbit(self->z, i)); in GMPy_XMPZ_Method_SubScript()
|
H A D | gmpy2_mpfr_misc.c | 563 return PyIntOrLong_FromLong((long)self->rc); in GMPy_MPFR_GetRc_Attrib()
|
H A D | gmpy2_math.c | 1687 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 D | gmpy2.h | 342 #define PyIntOrLong_FromLong PyLong_FromLong macro 357 #define PyIntOrLong_FromLong PyInt_FromLong macro
|
/dports/math/py-gmpy2/gmpy2-2.1.1/gmpy2/ |
H A D | gmpy2.h | 325 #define PyIntOrLong_FromLong PyLong_FromLong macro 341 #define PyIntOrLong_FromLong PyInt_FromLong macro
|