Update the workaround for libmpfr-1.dll and the "long double" type.

This commit is contained in:
Laurent Rineau 2010-07-09 11:21:43 +00:00
parent 07e42e63cf
commit d33eaa37d1
1 changed files with 18 additions and 0 deletions

View File

@ -1209,6 +1209,23 @@ bool operator==(const Gmpfr &a,double b){
return !mpfr_cmp_d(a.fr(),b);
}
// See the comment about mpfr_set_ld and MSVC++, above.
#ifdef _MSC_VER
inline
bool operator<(const Gmpfr &a,long double b){
return(mpfr_cmp_d(a.fr(),b)<0);
}
inline
bool operator>(const Gmpfr &a,long double b){
return(mpfr_cmp_d(a.fr(),b)>0);
}
inline
bool operator==(const Gmpfr &a,long double b){
return !mpfr_cmp_d(a.fr(),b);
}
#else
inline
bool operator<(const Gmpfr &a,long double b){
return(mpfr_cmp_ld(a.fr(),b)<0);
@ -1223,6 +1240,7 @@ inline
bool operator==(const Gmpfr &a,long double b){
return !mpfr_cmp_ld(a.fr(),b);
}
#endif
inline
bool operator<(const Gmpfr &a,const Gmpz &b){