mirror of
https://github.com/vale981/arb
synced 2025-03-04 08:51:40 -05:00
handle flint incompatibilities
This commit is contained in:
parent
43fcc53d76
commit
d3d9983231
2 changed files with 8 additions and 0 deletions
4
fmpr.h
4
fmpr.h
|
@ -22,7 +22,11 @@
|
|||
#include "flint/flint.h"
|
||||
#include "flint/fmpz.h"
|
||||
#include "flint/fmpq.h"
|
||||
#if __FLINT_RELEASE < 20600
|
||||
#include "flint/config.h"
|
||||
#else
|
||||
#include "flint/flint-config.h"
|
||||
#endif
|
||||
#include "fmpz_extras.h"
|
||||
|
||||
#ifndef flint_abort
|
||||
|
|
|
@ -43,6 +43,8 @@ fmpz_add_inline(fmpz_t z, const fmpz_t x, const fmpz_t y)
|
|||
fmpz_add(z, x, y);
|
||||
}
|
||||
|
||||
#if __FLINT_RELEASE < 20600
|
||||
|
||||
static __inline__ void
|
||||
fmpz_add_si(fmpz_t z, const fmpz_t x, slong y)
|
||||
{
|
||||
|
@ -61,6 +63,8 @@ fmpz_sub_si(fmpz_t z, const fmpz_t x, slong y)
|
|||
fmpz_add_ui(z, x, -y);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static __inline__ void
|
||||
fmpz_add_si_inline(fmpz_t z, const fmpz_t x, slong y)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue