We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7edf7 commit cace42bCopy full SHA for cace42b
src/flint/types/fmpz.pyx
@@ -19,12 +19,18 @@ cdef fmpz_get_intlong(fmpz_t x):
19
Convert fmpz_t to a Python int or long.
20
"""
21
cdef char * s
22
+ print("fmpz_get_intlong: 0")
23
if COEFF_IS_MPZ(x[0]):
24
+ print("fmpz_get_intlong: 1", flush=True)
25
s = fmpz_get_str(NULL, 16, x)
26
+ print("fmpz_get_intlong: 2", flush=True)
27
v = int(bytes(s).decode('ascii'), 16)
28
+ print("fmpz_get_intlong: 3", flush=True)
29
libc.stdlib.free(s)
30
+ print("fmpz_get_intlong: 4", flush=True)
31
return v
32
else:
33
+ print("fmpz_get_intlong: small", flush=True)
34
return <slong>x[0]
35
36
cdef int fmpz_set_any_ref(fmpz_t x, obj):
0 commit comments