1- from flint.flintlib.flint cimport ulong, mp_limb_t, slong, flint_rand_t
2- from flint.flintlib.fmpz cimport fmpz_struct, fmpz_t
3- from flint.flintlib.fmpq cimport fmpq_struct, fmpq_t
4- from flint.flintlib.arb_types cimport mag_t, mag_ptr
1+ from flint.flintlib.arb_types cimport mag_ptr, mag_t
2+ from flint.flintlib.flint cimport flint_rand_t, slong, ulong
3+ from flint.flintlib.fmpq cimport fmpq_t
4+ from flint.flintlib.fmpz_types cimport fmpz_t
5+
6+ # unknown type FILE
57
6- cdef extern from " flint/mag.h" :
78
8- # from here on is parsed
9+ cdef extern from " flint/mag.h " :
910 void mag_init(mag_t x)
1011 void mag_clear(mag_t x)
1112 void mag_swap(mag_t x, mag_t y)
@@ -22,7 +23,6 @@ cdef extern from "flint/mag.h":
2223 void mag_init_set(mag_t res, const mag_t x)
2324 void mag_set(mag_t res, const mag_t x)
2425 void mag_set_d(mag_t res, double x)
25- # void mag_set_fmpr(mag_t res, const fmpr_t x)
2626 void mag_set_ui(mag_t res, ulong x)
2727 void mag_set_fmpz(mag_t res, const fmpz_t x)
2828 void mag_set_d_lower(mag_t res, double x)
@@ -35,7 +35,6 @@ cdef extern from "flint/mag.h":
3535 void mag_set_fmpz_2exp_fmpz_lower(mag_t res, const fmpz_t x, const fmpz_t y)
3636 double mag_get_d(const mag_t x)
3737 double mag_get_d_log2_approx(const mag_t x)
38- # void mag_get_fmpr(fmpr_t res, const mag_t x)
3938 void mag_get_fmpq(fmpq_t res, const mag_t x)
4039 void mag_get_fmpz(fmpz_t res, const mag_t x)
4140 void mag_get_fmpz_lower(fmpz_t res, const mag_t x)
@@ -45,8 +44,11 @@ cdef extern from "flint/mag.h":
4544 void mag_min(mag_t res, const mag_t x, const mag_t y)
4645 void mag_max(mag_t res, const mag_t x, const mag_t y)
4746 void mag_print(const mag_t x)
47+ # void mag_fprint(FILE * file, const mag_t x)
4848 char * mag_dump_str(const mag_t x)
4949 int mag_load_str(mag_t x, const char * str )
50+ # int mag_dump_file(FILE * stream, const mag_t x)
51+ # int mag_load_file(mag_t x, FILE * stream)
5052 void mag_randtest(mag_t res, flint_rand_t state, slong expbits)
5153 void mag_randtest_special(mag_t res, flint_rand_t state, slong expbits)
5254 void mag_add(mag_t res, const mag_t x, const mag_t y)
0 commit comments