mirror of https://github.com/CGAL/cgal
mpfi_is_zero -> mpfr_zero_p (to avoid confusion due to user comparison
functions)
This commit is contained in:
parent
6a1ba3ea45
commit
5edd55aa51
|
|
@ -570,7 +570,7 @@ bool Gmpfi::do_overlap(const Gmpfi &b)const{
|
||||||
|
|
||||||
inline
|
inline
|
||||||
Uncertain<bool> Gmpfi::is_zero()const{
|
Uncertain<bool> Gmpfi::is_zero()const{
|
||||||
if(mpfi_is_zero(mpfi())!=0)
|
if(mpfr_zero_p(&mpfi()->left)!=0 && mpfr_zero_p(&mpfi()->right)!=0)
|
||||||
return true;
|
return true;
|
||||||
if(mpfi_has_zero(mpfi())!=0)
|
if(mpfi_has_zero(mpfi())!=0)
|
||||||
return Uncertain<bool>::indeterminate();
|
return Uncertain<bool>::indeterminate();
|
||||||
|
|
@ -657,7 +657,7 @@ Uncertain<bool> Gmpfi::is_square(Gmpfi &y)const{
|
||||||
|
|
||||||
inline
|
inline
|
||||||
Uncertain<bool> Gmpfi::divides(const Gmpfi &n)const{
|
Uncertain<bool> Gmpfi::divides(const Gmpfi &n)const{
|
||||||
if(mpfi_is_zero(mpfi())!=0)
|
if(mpfr_zero_p(&mpfi()->left)!=0 && mpfr_zero_p(&mpfi()->right)!=0)
|
||||||
return false;
|
return false;
|
||||||
if(mpfi_has_zero(mpfi())!=0)
|
if(mpfi_has_zero(mpfi())!=0)
|
||||||
return Uncertain<bool>::indeterminate();
|
return Uncertain<bool>::indeterminate();
|
||||||
|
|
@ -667,7 +667,7 @@ Uncertain<bool> Gmpfi::divides(const Gmpfi &n)const{
|
||||||
inline
|
inline
|
||||||
Uncertain<bool> Gmpfi::divides(const Gmpfi &n,Gmpfi &c,Gmpfi::Precision_type p
|
Uncertain<bool> Gmpfi::divides(const Gmpfi &n,Gmpfi &c,Gmpfi::Precision_type p
|
||||||
)const{
|
)const{
|
||||||
if(mpfi_is_zero(mpfi())!=0)
|
if(mpfr_zero_p(&mpfi()->left)!=0 && mpfr_zero_p(&mpfi()->right)!=0)
|
||||||
return false;
|
return false;
|
||||||
if(mpfi_has_zero(mpfi())!=0)
|
if(mpfi_has_zero(mpfi())!=0)
|
||||||
return Uncertain<bool>::indeterminate();
|
return Uncertain<bool>::indeterminate();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue