Skip to content

Commit 8ec4fbd

Browse files
committed
fix: Define error values for functions not present in flint
1 parent 7044f11 commit 8ec4fbd

File tree

1 file changed

+20
-0
lines changed
  • src/flint/flintlib/types

1 file changed

+20
-0
lines changed

src/flint/flintlib/types/gr.pxd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ from flint.flintlib.types.flint cimport (
55
flint_bitcnt_t,
66
)
77

8+
cdef extern from *:
9+
"""
10+
/*
11+
* The following functions were introduced in FLINT 3.2.0
12+
*/
13+
14+
#if __FLINT_RELEASE < 30200
15+
#define gr_min(res, x, y, ctx) GR_UNABLE
16+
#define gr_max(res, x, y, ctx) GR_UNABLE
17+
#define gr_le(x, y, ctx) T_UNKNOWN
18+
#define gr_lt(x, y, ctx) T_UNKNOWN
19+
#define gr_ge(x, y, ctx) T_UNKNOWN
20+
#define gr_gt(x, y, ctx) T_UNKNOWN
21+
#define gr_abs_le(x, y, ctx) T_UNKNOWN
22+
#define gr_abs_lt(x, y, ctx) T_UNKNOWN
23+
#define gr_abs_ge(x, y, ctx) T_UNKNOWN
24+
#define gr_abs_gt(x, y, ctx) T_UNKNOWN
25+
#endif
26+
"""
27+
828

929
cdef extern from "flint/gr.h":
1030

0 commit comments

Comments
 (0)