Inline long -> slong return values.

This commit is contained in:
William Hart 2015-11-10 13:44:55 +00:00
parent 34008143c1
commit 0fd0464161
3 changed files with 13 additions and 13 deletions

16
fmpr.h
View file

@ -217,7 +217,7 @@ fmpr_swap(fmpr_t x, fmpr_t y)
slong _fmpr_set_round(fmpz_t rman, fmpz_t rexp,
const fmpz_t man, const fmpz_t exp, slong prec, fmpr_rnd_t rnd);
static __inline__ long
static __inline__ slong
_fmpr_normalise(fmpz_t man, fmpz_t exp, slong prec, fmpr_rnd_t rnd)
{
if (fmpz_is_zero(man))
@ -232,7 +232,7 @@ _fmpr_normalise(fmpz_t man, fmpz_t exp, slong prec, fmpr_rnd_t rnd)
}
}
static __inline__ long
static __inline__ slong
fmpr_set_round_naive(fmpr_t y, const fmpr_t x, slong prec, fmpr_rnd_t rnd)
{
fmpr_set(y, x);
@ -242,7 +242,7 @@ fmpr_set_round_naive(fmpr_t y, const fmpr_t x, slong prec, fmpr_rnd_t rnd)
return _fmpr_normalise(fmpr_manref(y), fmpr_expref(y), prec, rnd);
}
static __inline__ long
static __inline__ slong
fmpr_set_round(fmpr_t y, const fmpr_t x, slong prec, fmpr_rnd_t rnd)
{
if (fmpr_is_special(x))
@ -257,7 +257,7 @@ fmpr_set_round(fmpr_t y, const fmpr_t x, slong prec, fmpr_rnd_t rnd)
}
}
static __inline__ long
static __inline__ slong
fmpr_set_round_fmpz_2exp(fmpr_t y, const fmpz_t x, const fmpz_t exp, slong prec, fmpr_rnd_t rnd)
{
if (fmpz_is_zero(x))
@ -271,7 +271,7 @@ fmpr_set_round_fmpz_2exp(fmpr_t y, const fmpz_t x, const fmpz_t exp, slong prec,
}
}
static __inline__ long
static __inline__ slong
fmpr_set_round_fmpz(fmpr_t y, const fmpz_t x, slong prec, fmpr_rnd_t rnd)
{
if (fmpz_is_zero(x))
@ -404,7 +404,7 @@ slong _fmpr_add_mpn(fmpr_t z,
mp_srcptr yman, mp_size_t yn, int ysign, const fmpz_t yexp,
slong shift, slong prec, fmpr_rnd_t rnd);
static __inline__ long
static __inline__ slong
_fmpr_add_1x1(fmpr_t z,
mp_limb_t x, int xsign, const fmpz_t xexp,
mp_limb_t y, int ysign, const fmpz_t yexp,
@ -534,7 +534,7 @@ fmpr_neg(fmpr_t y, const fmpr_t x)
}
}
static __inline__ long
static __inline__ slong
fmpr_neg_round(fmpr_t y, const fmpr_t x, slong prec, fmpr_rnd_t rnd)
{
fmpr_neg(y, x);
@ -696,7 +696,7 @@ fmpr_max(fmpr_t z, const fmpr_t a, const fmpr_t b)
fmpr_set(z, b);
}
static __inline__ long
static __inline__ slong
fmpr_bits(const fmpr_t x)
{
if (fmpr_is_special(x))

View file

@ -491,7 +491,7 @@ void fmprb_set_interval_fmpr(fmprb_t x, const fmpr_t a, const fmpr_t b, slong pr
void fmprb_union(fmprb_t z, const fmprb_t x, const fmprb_t y, slong prec);
static __inline__ long
static __inline__ slong
fmprb_rel_error_bits(const fmprb_t x)
{
fmpz_t midmag, radmag;
@ -517,13 +517,13 @@ fmprb_rel_error_bits(const fmprb_t x)
return result;
}
static __inline__ long
static __inline__ slong
fmprb_rel_accuracy_bits(const fmprb_t x)
{
return -fmprb_rel_error_bits(x);
}
static __inline__ long
static __inline__ slong
fmprb_bits(const fmprb_t x)
{
return fmpr_bits(fmprb_midref(x));
@ -708,7 +708,7 @@ _fmprb_vec_get_abs_ubound_fmpr(fmpr_t bound, fmprb_srcptr vec,
}
}
static __inline__ long
static __inline__ slong
_fmprb_vec_bits(fmprb_srcptr x, slong len)
{
slong i, b, c;

View file

@ -202,7 +202,7 @@ static __inline__ void fmpz_sub_mul2exp(fmpz_t z, const fmpz_t x, const fmpz_t y
slong _fmpz_sub_small_large(const fmpz_t x, const fmpz_t y);
static __inline__ long
static __inline__ slong
_fmpz_sub_small(const fmpz_t x, const fmpz_t y)
{
if (!COEFF_IS_MPZ(*x) && !COEFF_IS_MPZ(*y))