Skip to content

Commit

Permalink
fix: Define error values for functions not present in flint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Hubrecht committed Jan 30, 2025
1 parent 7044f11 commit 8ec4fbd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/flint/flintlib/types/gr.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ from flint.flintlib.types.flint cimport (
flint_bitcnt_t,
)

cdef extern from *:
"""
/*
* The following functions were introduced in FLINT 3.2.0
*/
#if __FLINT_RELEASE < 30200
#define gr_min(res, x, y, ctx) GR_UNABLE
#define gr_max(res, x, y, ctx) GR_UNABLE
#define gr_le(x, y, ctx) T_UNKNOWN
#define gr_lt(x, y, ctx) T_UNKNOWN
#define gr_ge(x, y, ctx) T_UNKNOWN
#define gr_gt(x, y, ctx) T_UNKNOWN
#define gr_abs_le(x, y, ctx) T_UNKNOWN
#define gr_abs_lt(x, y, ctx) T_UNKNOWN
#define gr_abs_ge(x, y, ctx) T_UNKNOWN
#define gr_abs_gt(x, y, ctx) T_UNKNOWN
#endif
"""


cdef extern from "flint/gr.h":

Expand Down

0 comments on commit 8ec4fbd

Please sign in to comment.