/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/src/ |
H A D | gmpy2_convert.h | 54 #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 D | gmpy2_mpz_misc.c | 348 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 D | gmpy2_convert_utils.c | 136 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 D | gmpy2_add.c | 71 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 D | gmpy2_mul.c | 69 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 D | gmpy2_sub.c | 69 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 D | gmpy2_macros.h | 249 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 D | gmpy2_mpz.h | 38 #define MPZ_Check(v) (((PyObject*)v)->ob_type == &MPZ_Type) macro
|
H A D | gmpy2_convert_gmp.c | 304 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 D | gmpy2_xmpz.h | 39 #define CHECK_MPZANY(v) (MPZ_Check(v) || XMPZ_Check(v))
|
H A D | gmpy2_mod.c | 146 if (MPZ_Check(x) && MPZ_Check(y)) { in GMPy_MPZ_Mod_Slot()
|
H A D | gmpy2_abs.c | 59 if (MPZ_Check(x)) { in GMPy_Integer_Abs()
|
H A D | gmpy2_square.c | 183 if (MPZ_Check(x)) in GMPy_Number_Square()
|
H A D | gmpy2_cache.c | 113 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 D | gmpy2_minus.c | 204 if (MPZ_Check(x)) in GMPy_Number_Minus()
|
/dports/math/py-gmpy2-devel/gmpy-gmpy2-2.1.0b5/test_cython/ |
H A D | test_cython.pyx | 286 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 D | gmpy2_convert.h | 53 #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 D | gmpy2_convert_utils.c | 57 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 D | gmpy2_mpz_misc.c | 346 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 D | gmpy2_convert_gmp.c | 298 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 D | gmpy2_mpz.h | 36 #define MPZ_Check(v) (((PyObject*)v)->ob_type == &MPZ_Type) macro
|
H A D | gmpy2_xmpz.h | 37 #define CHECK_MPZANY(v) (MPZ_Check(v) || XMPZ_Check(v))
|
H A D | gmpy2_mpmath.c | 74 if (MPZ_Check(x)) { in mpmath_get_sign() 119 if (!MPZ_Check(man)) { in Pympz_mpmath_normalize()
|
H A D | gmpy2_square.c | 181 if (MPZ_Check(x)) in GMPy_Number_Square()
|
H A D | gmpy2_cache.c | 111 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()
|