Home
last modified time | relevance | path

Searched refs:MPZ_Check (Results 1 – 25 of 44) sorted by relevance

12

/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/src/
H A Dgmpy2_convert.h54 #define IS_INTEGER(x) (MPZ_Check(x) || PyInt_Check(x) || \
58 MPZ_Check(x) || PyInt_Check(x) || PyLong_Check(x) || \
62 #define IS_INTEGER(x) (MPZ_Check(x) || PyLong_Check(x) || \
65 MPZ_Check(x) || PyLong_Check(x) || \
H A Dgmpy2_mpz_misc.c348 if (MPZ_Check(arg0) && MPZ_Check(arg1)) { in GMPy_MPZ_Function_GCD()
393 if (MPZ_Check(arg0) && MPZ_Check(arg1)) { in GMPy_MPZ_Function_LCM()
446 if (MPZ_Check(arg0) && MPZ_Check(arg1)) { in GMPy_MPZ_Function_GCDext()
919 if (MPZ_Check(x) && MPZ_Check(f)) { in GMPy_MPZ_Function_Remove()
980 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Function_Invert()
1049 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Function_Divexact()
1091 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsSquare()
1286 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsPower()
1417 if(MPZ_Check(other)) { in GMPy_MPZ_Function_NextPrime()
1548 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsEven()
H A Dgmpy2_convert_utils.c136 if (temp_mpz != NULL && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsLongAndError()
241 if (temp_mpz != NULL && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsUnsignedLongAndError()
395 if (temp_mpz != NULL && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsLongLongAndError()
495 if (temp_mpz != NULL && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsUnsignedLongLongAndError()
H A Dgmpy2_add.c71 if (MPZ_Check(x)) { in GMPy_Integer_Add()
91 if (MPZ_Check(y)) { in GMPy_Integer_Add()
97 if (MPZ_Check(y)) { in GMPy_Integer_Add()
153 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Add_Slot()
H A Dgmpy2_mul.c69 if (MPZ_Check(x)) { in GMPy_Integer_Mul()
84 if (MPZ_Check(y)) { in GMPy_Integer_Mul()
90 if (MPZ_Check(y)) { in GMPy_Integer_Mul()
140 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Mul_Slot()
H A Dgmpy2_sub.c69 if (MPZ_Check(x)) { in GMPy_Integer_Sub()
89 if (MPZ_Check(y)) { in GMPy_Integer_Sub()
95 if (MPZ_Check(y)) { in GMPy_Integer_Sub()
152 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Sub_Slot()
H A Dgmpy2_macros.h249 if (MPZ_Check(x) && MPZ_Check(y) && MPZ_Check(z)) \
291 if (MPZ_Check(x) && MPZ_Check(y) && MPZ_Check(z) && MPZ_Check(t)) \
H A Dgmpy2_mpz.h38 #define MPZ_Check(v) (((PyObject*)v)->ob_type == &MPZ_Type) macro
H A Dgmpy2_convert_gmp.c304 if (MPZ_Check(obj)) { in GMPy_MPZ_From_Integer()
318 if (result != NULL && MPZ_Check(result)) { in GMPy_MPZ_From_Integer()
1019 if (MPZ_Check(obj)) in GMPy_MPQ_From_Number()
1052 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_Number()
1100 if (MPZ_Check(obj)) in GMPy_MPQ_From_Rational()
1127 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_Rational()
H A Dgmpy2_xmpz.h39 #define CHECK_MPZANY(v) (MPZ_Check(v) || XMPZ_Check(v))
H A Dgmpy2_mod.c146 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Mod_Slot()
H A Dgmpy2_abs.c59 if (MPZ_Check(x)) { in GMPy_Integer_Abs()
H A Dgmpy2_square.c183 if (MPZ_Check(x)) in GMPy_Number_Square()
H A Dgmpy2_cache.c113 if (MPZ_Check(n)) { in GMPy_MPZ_NewInit()
157 if (!MPZ_Check(out)) { in GMPy_MPZ_NewInit()
298 if (MPZ_Check(n)) { in GMPy_XMPZ_NewInit()
H A Dgmpy2_minus.c204 if (MPZ_Check(x)) in GMPy_Number_Minus()
/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/test_cython/
H A Dtest_cython.pyx286 assert MPZ_Check(x)
292 assert not MPZ_Check(y)
298 assert not MPZ_Check(z)
304 assert not MPZ_Check(c)
311 assert not MPZ_Check(i)
323 assert MPZ_Check(x)
329 assert not MPZ_Check(y)
335 assert not MPZ_Check(z)
341 assert not MPZ_Check(c)
348 assert not MPZ_Check(i)
/dports/math/py-gmpy2/gmpy2-2.1.1/src/
H A Dgmpy2_convert.h53 #define IS_INTEGER(x) (MPZ_Check(x) || PyInt_Check(x) || \
57 MPZ_Check(x) || PyInt_Check(x) || \
61 #define IS_INTEGER(x) (MPZ_Check(x) || PyLong_Check(x) || \
64 MPZ_Check(x) || PyLong_Check(x) || \
H A Dgmpy2_convert_utils.c57 if ((temp_mpz != NULL) && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsLongWithType()
100 if ((temp_mpz != NULL) && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsUnsignedLongWithType()
163 if (temp_mpz != NULL && MPZ_Check(temp_mpz)) { in GMPy_Integer_AsLongLongWithType()
H A Dgmpy2_mpz_misc.c346 if MPZ_Check(arg) { in GMPy_MPZ_Function_GCD()
393 if MPZ_Check(arg) { in GMPy_MPZ_Function_LCM()
450 if (MPZ_Check(arg0) && MPZ_Check(arg1)) { in GMPy_MPZ_Function_GCDext()
932 if (MPZ_Check(x) && MPZ_Check(f)) { in GMPy_MPZ_Function_Remove()
993 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Function_Invert()
1062 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Function_Divexact()
1104 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsSquare()
1303 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsPower()
1434 if(MPZ_Check(other)) { in GMPy_MPZ_Function_NextPrime()
1565 if (MPZ_Check(other)) { in GMPy_MPZ_Function_IsEven()
H A Dgmpy2_convert_gmp.c298 if (MPZ_Check(obj)) { in GMPy_MPZ_From_Integer()
312 if (result != NULL && MPZ_Check(result)) { in GMPy_MPZ_From_Integer()
345 if (result != NULL && MPZ_Check(result)) { in GMPy_MPZ_From_IntegerWithType()
990 if (MPZ_Check(obj)) in GMPy_MPQ_From_Number()
1023 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_Number()
1080 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_NumberWithType()
1128 if (MPZ_Check(obj)) in GMPy_MPQ_From_Rational()
1155 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_Rational()
1206 if (res != NULL && MPZ_Check(res)) { in GMPy_MPQ_From_RationalWithType()
H A Dgmpy2_mpz.h36 #define MPZ_Check(v) (((PyObject*)v)->ob_type == &MPZ_Type) macro
H A Dgmpy2_xmpz.h37 #define CHECK_MPZANY(v) (MPZ_Check(v) || XMPZ_Check(v))
H A Dgmpy2_mpmath.c74 if (MPZ_Check(x)) { in mpmath_get_sign()
119 if (!MPZ_Check(man)) { in Pympz_mpmath_normalize()
H A Dgmpy2_square.c181 if (MPZ_Check(x)) in GMPy_Number_Square()
H A Dgmpy2_cache.c111 if (MPZ_Check(n)) { in GMPy_MPZ_NewInit()
155 if (!MPZ_Check(out)) { in GMPy_MPZ_NewInit()
296 if (MPZ_Check(n)) { in GMPy_XMPZ_NewInit()

12