mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -05:00
get rid of some more exprefs
This commit is contained in:
parent
2d7da54ac4
commit
b139048d61
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ fmprb_get_unique_fmpz(fmpz_t z, const fmprb_t x)
|
||||||
else if (fmpr_is_zero(fmprb_radref(x)))
|
else if (fmpr_is_zero(fmprb_radref(x)))
|
||||||
{
|
{
|
||||||
/* x = b*2^e, e >= 0 */
|
/* x = b*2^e, e >= 0 */
|
||||||
if (fmpz_sgn(fmpr_expref(fmprb_midref(x))) >= 0)
|
if (fmpr_is_int(fmprb_midref(x)))
|
||||||
{
|
{
|
||||||
if (!fmpz_fits_si(fmpr_expref(fmprb_midref(x))))
|
if (!fmpz_fits_si(fmpr_expref(fmprb_midref(x))))
|
||||||
{
|
{
|
||||||
|
@ -62,7 +62,7 @@ fmprb_get_unique_fmpz(fmpz_t z, const fmprb_t x)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* if the midpoint is exactly an integer, it is what we want */
|
/* if the midpoint is exactly an integer, it is what we want */
|
||||||
if (fmpz_sgn(fmpr_expref(fmprb_midref(x))) >= 0)
|
if (fmpr_is_int(fmprb_midref(x)))
|
||||||
{
|
{
|
||||||
if (!fmpz_fits_si(fmpr_expref(fmprb_midref(x))))
|
if (!fmpz_fits_si(fmpr_expref(fmprb_midref(x))))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue