Lines Matching defs:int
126 #undef MPFR_USE_INTMAX_T // GCC already supports x64 as of "long int" is 64-bit integer, nothing left to do
181 mpreal(const unsigned long int u, mp_prec_t prec = mpreal::get_default_prec(), mp_rnd_t mode = mpreal::get_default_rnd());
182 mpreal(const unsigned int u, mp_prec_t prec = mpreal::get_default_prec(), mp_rnd_t mode = mpreal::get_default_rnd());
183 mpreal(const long int u, mp_prec_t prec = mpreal::get_default_prec(), mp_rnd_t mode = mpreal::get_default_rnd());
184 mpreal(const int u, mp_prec_t prec = mpreal::get_default_prec(), mp_rnd_t mode = mpreal::get_default_rnd());
195 mpreal(const char* s, mp_prec_t prec = mpreal::get_default_prec(), int base = 10, mp_rnd_t mode = mpreal::get_default_rnd());
196 mpreal(const std::string& s, mp_prec_t prec = mpreal::get_default_prec(), int base = 10, mp_rnd_t mode = mpreal::get_default_rnd());
218 mpreal& operator=(const unsigned long int v);
219 mpreal& operator=(const unsigned int v);
220 mpreal& operator=(const long int v);
221 mpreal& operator=(const int v);
232 mpreal& operator+=(const unsigned long int u);
233 mpreal& operator+=(const unsigned int u);
234 mpreal& operator+=(const long int u);
235 mpreal& operator+=(const int u);
250 const mpreal operator++ (int);
258 mpreal& operator-=(const unsigned long int u);
259 mpreal& operator-=(const unsigned int u);
260 mpreal& operator-=(const long int u);
261 mpreal& operator-=(const int u);
263 friend const mpreal operator-(const unsigned long int b, const mpreal& a);
264 friend const mpreal operator-(const unsigned int b, const mpreal& a);
265 friend const mpreal operator-(const long int b, const mpreal& a);
266 friend const mpreal operator-(const int b, const mpreal& a);
269 const mpreal operator-- (int);
277 mpreal& operator*=(const unsigned long int v);
278 mpreal& operator*=(const unsigned int v);
279 mpreal& operator*=(const long int v);
280 mpreal& operator*=(const int v);
288 mpreal& operator/=(const unsigned long int v);
289 mpreal& operator/=(const unsigned int v);
290 mpreal& operator/=(const long int v);
291 mpreal& operator/=(const int v);
292 friend const mpreal operator/(const unsigned long int b, const mpreal& a);
293 friend const mpreal operator/(const unsigned int b, const mpreal& a);
294 friend const mpreal operator/(const long int b, const mpreal& a);
295 friend const mpreal operator/(const int b, const mpreal& a);
299 mpreal& operator<<=(const unsigned long int u);
300 mpreal& operator<<=(const unsigned int u);
301 mpreal& operator<<=(const long int u);
302 mpreal& operator<<=(const int u);
305 mpreal& operator>>=(const unsigned long int u);
306 mpreal& operator>>=(const unsigned int u);
307 mpreal& operator>>=(const long int u);
308 mpreal& operator>>=(const int u);
319 friend bool operator == (const mpreal& a, const unsigned long int b);
320 friend bool operator == (const mpreal& a, const unsigned int b);
321 friend bool operator == (const mpreal& a, const long int b);
322 friend bool operator == (const mpreal& a, const int b);
336 explicit operator int () const { return toLong(); }
364 std::string toString(int n = -1, int b = 10, mp_rnd_t mode = mpreal::get_default_rnd()) const;
375 friend const mpreal sqrt(const unsigned long int v, mp_rnd_t rnd_mode);
377 friend const mpreal root(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
380 friend const mpreal pow (const mpreal& a, const unsigned long int b, mp_rnd_t rnd_mode);
381 friend const mpreal pow (const mpreal& a, const long int b, mp_rnd_t rnd_mode);
382 friend const mpreal pow (const unsigned long int a, const mpreal& b, mp_rnd_t rnd_mode);
383 friend const mpreal pow (const unsigned long int a, const unsigned long int b, mp_rnd_t rnd_mode);
388 friend inline const mpreal mul_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
389 friend inline const mpreal mul_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode);
390 friend inline const mpreal div_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
391 friend inline const mpreal div_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode);
392 friend int cmpabs(const mpreal& a,const mpreal& b);
409 friend int sin_cos(mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode);
434 friend const mpreal fac_ui (unsigned long int v, mp_prec_t prec, mp_rnd_t rnd_mode);
439 friend const mpreal lgamma (const mpreal& v, int *signp, mp_rnd_t rnd_mode);
452 friend const mpreal sum (const mpreal tab[], unsigned long int n, mp_rnd_t rnd_mode);
453 friend int sgn(const mpreal& v); // returns -1 or +1
457 friend int sinh_cosh (mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode);
473 friend const mpreal grandom (unsigned int seed);
480 friend const mpreal random(unsigned int seed);
498 friend const mpreal const_infinity(int sign, mp_prec_t prec);
549 inline mpreal& setPrecision(int Precision, mp_rnd_t RoundingMode = get_default_rnd());
550 inline int getPrecision() const;
553 mpreal& setInf (int Sign = +1);
555 mpreal& setZero (int Sign = +1);
556 mpreal& setSign (int Sign, mp_rnd_t RoundingMode = get_default_rnd());
560 int set_exp(mp_exp_t e);
561 int check_range (int t, mp_rnd_t rnd_mode = get_default_rnd());
562 int subnormalize (int t,mp_rnd_t rnd_mode = get_default_rnd());
565 inline bool fits_in_bits(double x, int n);
577 static int set_emin (mp_exp_t exp);
578 static int set_emax (mp_exp_t exp);
709 inline mpreal::mpreal(const unsigned long int u, mp_prec_t prec, mp_rnd_t mode)
717 inline mpreal::mpreal(const unsigned int u, mp_prec_t prec, mp_rnd_t mode)
725 inline mpreal::mpreal(const long int u, mp_prec_t prec, mp_rnd_t mode)
733 inline mpreal::mpreal(const int u, mp_prec_t prec, mp_rnd_t mode)
759 inline mpreal::mpreal(const char* s, mp_prec_t prec, int base, mp_rnd_t mode)
767 inline mpreal::mpreal(const std::string& s, mp_prec_t prec, int base, mp_rnd_t mode)
801 template <> struct result_type<unsigned long int> {typedef mpreal type;};
802 template <> struct result_type<unsigned int> {typedef mpreal type;};
803 template <> struct result_type<long int> {typedef mpreal type;};
804 template <> struct result_type<int> {typedef mpreal type;};
850 const mpreal sqrt(const unsigned int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
851 const mpreal sqrt(const long int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
852 const mpreal sqrt(const int v, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
861 const mpreal pow(const mpreal& a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
862 const mpreal pow(const mpreal& a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
866 const mpreal pow(const unsigned int a, const mpreal& b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
867 const mpreal pow(const long int a, const mpreal& b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
868 const mpreal pow(const int a, const mpreal& b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
872 const mpreal pow(const unsigned long int a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
873 const mpreal pow(const unsigned long int a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
874 const mpreal pow(const unsigned long int a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
875 const mpreal pow(const unsigned long int a, const long double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
876 const mpreal pow(const unsigned long int a, const double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
878 const mpreal pow(const unsigned int a, const unsigned long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
879 const mpreal pow(const unsigned int a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
880 const mpreal pow(const unsigned int a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
881 const mpreal pow(const unsigned int a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
882 const mpreal pow(const unsigned int a, const long double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
883 const mpreal pow(const unsigned int a, const double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
885 const mpreal pow(const long int a, const unsigned long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
886 const mpreal pow(const long int a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
887 const mpreal pow(const long int a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
888 const mpreal pow(const long int a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
889 const mpreal pow(const long int a, const long double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
890 const mpreal pow(const long int a, const double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
892 const mpreal pow(const int a, const unsigned long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
893 const mpreal pow(const int a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
894 const mpreal pow(const int a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
895 const mpreal pow(const int a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
896 const mpreal pow(const int a, const long double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
897 const mpreal pow(const int a, const double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
900 const mpreal pow(const long double a, const unsigned long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
901 const mpreal pow(const long double a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
902 const mpreal pow(const long double a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
903 const mpreal pow(const long double a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
906 const mpreal pow(const double a, const unsigned long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
907 const mpreal pow(const double a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
908 const mpreal pow(const double a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
909 const mpreal pow(const double a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
911 inline const mpreal mul_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
912 inline const mpreal mul_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
913 inline const mpreal div_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
914 inline const mpreal div_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode = mpreal::get_default_rnd());
938 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps);
945 inline mp_prec_t digits2bits(int d);
946 inline int bits2digits(mp_prec_t b);
1026 inline mpreal& mpreal::operator=(const unsigned long int v)
1034 inline mpreal& mpreal::operator=(const unsigned int v)
1042 inline mpreal& mpreal::operator=(const long int v)
1050 inline mpreal& mpreal::operator=(const int v)
1062 // mpreal(const char* s, mp_prec_t prec, int base, mp_rnd_t mode)
1063 // mpreal(const std::string& s,mp_prec_t prec, int base, mp_rnd_t mode)
1085 // mpreal(const char* s, mp_prec_t prec, int base, mp_rnd_t mode)
1086 // mpreal(const std::string& s,mp_prec_t prec, int base, mp_rnd_t mode)
1154 inline mpreal& mpreal::operator+=(const unsigned long int u)
1161 int u)
1168 inline mpreal& mpreal::operator+=(const long int u)
1175 inline mpreal& mpreal::operator+=(const int u)
1207 inline const mpreal mpreal::operator++ (int)
1219 inline const mpreal mpreal::operator-- (int)
1268 inline mpreal& mpreal::operator-=(const unsigned long int v)
1275 inline mpreal& mpreal::operator-=(const unsigned int v)
1282 inline mpreal& mpreal::operator-=(const long int v)
1289 inline mpreal& mpreal::operator-=(const int v)
1323 inline const mpreal operator-(const unsigned long int b, const mpreal& a)
1330 inline const mpreal operator-(const unsigned int b, const mpreal& a)
1337 inline const mpreal operator-(const long int b, const mpreal& a)
1344 inline const mpreal operator-(const int b, const mpreal& a)
1392 inline mpreal& mpreal::operator*=(const unsigned long int v)
1399 inline mpreal& mpreal::operator*=(const unsigned int v)
1406 inline mpreal& mpreal::operator*=(const long int v)
1413 inline mpreal& mpreal::operator*=(const int v)
1468 inline mpreal& mpreal::operator/=(const unsigned long int v)
1475 inline mpreal& mpreal::operator/=(const unsigned int v)
1482 inline mpreal& mpreal::operator/=(const long int v)
1489 inline mpreal& mpreal::operator/=(const int v)
1503 inline const mpreal operator/(const unsigned long int b, const mpreal& a)
1510 inline const mpreal operator/(const unsigned int b, const mpreal& a)
1517 inline const mpreal operator/(const long int b, const mpreal& a)
1524 inline const mpreal operator/(const int b, const mpreal& a)
1546 inline mpreal& mpreal::operator<<=(const unsigned long int u)
1553 inline mpreal& mpreal::operator<<=(const unsigned int u)
1555 mpfr_mul_2ui(mpfr_ptr(),mpfr_srcptr(),static_cast<unsigned long int>(u),mpreal::get_default_rnd());
1560 inline mpreal& mpreal::operator<<=(const long int u)
1567 inline mpreal& mpreal::operator<<=(const int u)
1569 mpfr_mul_2si(mpfr_ptr(),mpfr_srcptr(),static_cast<long int>(u),mpreal::get_default_rnd());
1574 inline mpreal& mpreal::operator>>=(const unsigned long int u)
1581 inline mpreal& mpreal::operator>>=(const unsigned int u)
1583 mpfr_div_2ui(mpfr_ptr(),mpfr_srcptr(),static_cast<unsigned long int>(u),mpreal::get_default_rnd());
1588 inline mpreal& mpreal::operator>>=(const long int u)
1595 inline mpreal& mpreal::operator>>=(const int u)
1597 mpfr_div_2si(mpfr_ptr(),mpfr_srcptr(),static_cast<long int>(u),mpreal::get_default_rnd());
1602 inline const mpreal operator<<(const mpreal& v, const unsigned long int k)
1607 inline const mpreal operator<<(const mpreal& v, const unsigned int k)
1609 return mul_2ui(v,static_cast<unsigned long int>(k));
1612 inline const mpreal operator<<(const mpreal& v, const long int k)
1617 inline const mpreal operator<<(const mpreal& v, const int k)
1619 return mul_2si(v,static_cast<long int>(k));
1622 inline const mpreal operator>>(const mpreal& v, const unsigned long int k)
1627 inline const mpreal operator>>(const mpreal& v, const long int k)
1632 inline const mpreal operator>>(const mpreal& v, const unsigned int k)
1634 return div_2ui(v,static_cast<unsigned long int>(k));
1637 inline const mpreal operator>>(const mpreal& v, const int k)
1639 return div_2si(v,static_cast<long int>(k));
1643 inline const mpreal mul_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode)
1651 inline const mpreal mul_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode)
1658 inline const mpreal div_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode)
1665 inline const mpreal div_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode)
1681 inline bool operator == (const mpreal& a, const unsigned long int b ){ return (mpfr_cmp_ui(a.mpfr_srcptr(),b) == 0 ); }
1682 inline bool operator == (const mpreal& a, const unsigned int b ){ return (mpfr_cmp_ui(a.mpfr_srcptr(),b) == 0 ); }
1683 inline bool operator == (const mpreal& a, const long int b ){ return (mpfr_cmp_si(a.mpfr_srcptr(),b) == 0 ); }
1684 inline bool operator == (const mpreal& a, const int b ){ return (mpfr_cmp_si(a.mpfr_srcptr(),b) == 0 ); }
1747 inline std::string mpreal::toString(int n, int b, mp_rnd_t mode) const
1757 int digits = (n >= 0) ? n : bits2digits(mpfr_get_prec(mpfr_srcptr()));
1910 inline mp_prec_t digits2bits(int d)
1917 inline int bits2digits(mp_prec_t b)
1921 return int(std::floor( b * LOG10_2 ));
1926 inline int sgn(const mpreal& op)
1928 int r = mpfr_signbit(op.mpfr_srcptr());
1932 inline mpreal& mpreal::setSign(int sign, mp_rnd_t RoundingMode)
1939 inline int mpreal::getPrecision() const
1941 return int(mpfr_get_prec(mpfr_srcptr()));
1944 inline mpreal& mpreal::setPrecision(int Precision, mp_rnd_t RoundingMode)
1951 inline mpreal& mpreal::setInf(int sign)
1965 inline mpreal& mpreal::setZero(int sign)
1995 inline int mpreal::set_exp (mp_exp_t e)
1997 int x = mpfr_set_exp(mpfr_ptr(), e);
2050 inline bool isEqualUlps(const mpreal& a, const mpreal& b, int maxUlps)
2075 inline int mpreal::check_range (int t, mp_rnd_t rnd_mode)
2080 inline int mpreal::subnormalize (int t,mp_rnd_t rnd_mode)
2082 int r = mpfr_subnormalize(mpfr_ptr(),t,rnd_mode);
2092 inline int mpreal::set_emin (mp_exp_t exp)
2102 inline int mpreal::set_emax (mp_exp_t exp)
2141 inline const mpreal sqrt(const unsigned long int x, mp_rnd_t r)
2148 inline const mpreal sqrt(const unsigned int v, mp_rnd_t rnd_mode)
2150 return sqrt(static_cast<unsigned long int>(v),rnd_mode);
2153 inline const mpreal sqrt(const long int v, mp_rnd_t rnd_mode)
2155 if (v>=0) return sqrt(static_cast<unsigned long int>(v),rnd_mode);
2159 inline const mpreal sqrt(const int v, mp_rnd_t rnd_mode)
2161 if (v>=0) return sqrt(static_cast<unsigned long int>(v),rnd_mode);
2165 inline const mpreal root(const mpreal& x, unsigned long int k, mp_rnd_t r = mpreal::get_default_rnd())
2179 inline int cmpabs(const mpreal& a,const mpreal& b)
2184 inline int sin_cos(mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2269 inline const mpreal fac_ui (unsigned long int v, mp_prec_t prec = mpreal::get_default_prec(),
2278 inline const mpreal lgamma (const mpreal& v, int *signp = 0, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2281 int tsignp;
2349 inline const mpreal sum (const mpreal tab[], unsigned long int n, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2353 unsigned long int i;
2366 inline int sinh_cosh(mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2467 inline const mpreal const_infinity (int sign = 1, mp_prec_t p = mpreal::get_default_prec())
2590 inline const mpreal random(unsigned int seed = 0)
2615 inline const mpreal grandom(unsigned int seed = 0)
2645 inline bool mpreal::fits_in_bits(double x, int n)
2647 int i;
2666 int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2673 inline const mpreal pow(const mpreal& a, const unsigned int b, mp_rnd_t rnd_mode)
2675 return pow(a,static_cast<unsigned long int>(b),rnd_mode);
2678 inline const mpreal pow(const mpreal& a, const long int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2685 inline const mpreal pow(const mpreal& a, const int b, mp_rnd_t rnd_mode)
2687 return pow(a,static_cast<long int>(b),rnd_mode);
2700 inline const mpreal pow(const unsigned long int a, const mpreal& b, mp_rnd_t rnd_mode = mpreal::get_default_rnd())
2707 inline const mpreal pow(const unsigned int a, const mpreal& b, mp_rnd_t rnd_mode)
2709 return pow(static_cast<unsigned long int>(a),b,rnd_mode);
2712 inline const mpreal pow(const long int a, const mpreal& b, mp_rnd_t rnd_mode)
2714 if (a>=0) return pow(static_cast<unsigned long int>(a),b,rnd_mode);
2718 inline const mpreal pow(const int a, const mpreal& b, mp_rnd_t rnd_mode)
2720 if (a>=0) return pow(static_cast<unsigned long int>(a),b,rnd_mode);
2734 // pow unsigned long int
2735 inline const mpreal pow(const unsigned long int a, const unsigned long int b, mp_rnd_t rnd_mode)
2742 inline const mpreal pow(const unsigned long int a, const unsigned int b, mp_rnd_t rnd_mode)
2744 return pow(a,static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2747 inline const mpreal pow(const unsigned long int a, const long int b, mp_rnd_t rnd_mode)
2749 if(b>0) return pow(a,static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2753 inline const mpreal pow(const unsigned long int a, const int b, mp_rnd_t rnd_mode)
2755 if(b>0) return pow(a,static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2759 inline const mpreal pow(const unsigned long int a, const long double b, mp_rnd_t rnd_mode)
2764 inline const mpreal pow(const unsigned long int a, const double b, mp_rnd_t rnd_mode)
2769 // pow unsigned int
2770 inline const mpreal pow(const unsigned int a, const unsigned long int b, mp_rnd_t rnd_mode)
2772 return pow(static_cast<unsigned long int>(a),b,rnd_mode); //mpfr_ui_pow_ui
2775 inline const mpreal pow(const unsigned int a, const unsigned int b, mp_rnd_t rnd_mode)
2777 return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2780 inline const mpreal pow(const unsigned int a, const long int b, mp_rnd_t rnd_mode)
2782 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2783 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2786 inline const mpreal pow(const unsigned int a, const int b, mp_rnd_t rnd_mode)
2788 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2789 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2792 inline const mpreal pow(const unsigned int a, const long double b, mp_rnd_t rnd_mode)
2794 return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2797 inline const mpreal pow(const unsigned int a, const double b, mp_rnd_t rnd_mode)
2799 return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2802 // pow long int
2803 inline const mpreal pow(const long int a, const unsigned long int b, mp_rnd_t rnd_mode)
2805 if (a>0) return pow(static_cast<unsigned long int>(a),b,rnd_mode); //mpfr_ui_pow_ui
2809 inline const mpreal pow(const long int a, const unsigned int b, mp_rnd_t rnd_mode)
2811 if (a>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2812 else return pow(mpreal(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_pow_ui
2815 inline const mpreal pow(const long int a, const long int b, mp_rnd_t rnd_mode)
2819 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2820 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2826 inline const mpreal pow(const long int a, const int b, mp_rnd_t rnd_mode)
2830 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2831 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2833 return pow(mpreal(a),static_cast<long int>(b),rnd_mode); // mpfr_pow_si
2837 inline const mpreal pow(const long int a, const long double b, mp_rnd_t rnd_mode)
2839 if (a>=0) return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2843 inline const mpreal pow(const long int a, const double b, mp_rnd_t rnd_mode)
2845 if (a>=0) return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2849 // pow int
2850 inline const mpreal pow(const int a, const unsigned long int b, mp_rnd_t rnd_mode)
2852 if (a>0) return pow(static_cast<unsigned long int>(a),b,rnd_mode); //mpfr_ui_pow_ui
2856 inline const mpreal pow(const int a, const unsigned int b, mp_rnd_t rnd_mode)
2858 if (a>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2859 else return pow(mpreal(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_pow_ui
2862 inline const mpreal pow(const int a, const long int b, mp_rnd_t rnd_mode)
2866 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2867 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2873 inline const mpreal pow(const int a, const int b, mp_rnd_t rnd_mode)
2877 if(b>0) return pow(static_cast<unsigned long int>(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_ui_pow_ui
2878 else return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2880 return pow(mpreal(a),static_cast<long int>(b),rnd_mode); // mpfr_pow_si
2884 inline const mpreal pow(const int a, const long double b, mp_rnd_t rnd_mode)
2886 if (a>=0) return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2890 inline const mpreal pow(const int a, const double b, mp_rnd_t rnd_mode)
2892 if (a>=0) return pow(static_cast<unsigned long int>(a),mpreal(b),rnd_mode); //mpfr_ui_pow
2902 inline const mpreal pow(const long double a, const unsigned long int b, mp_rnd_t rnd_mode)
2907 inline const mpreal pow(const long double a, const unsigned int b, mp_rnd_t rnd_mode)
2909 return pow(mpreal(a),static_cast<unsigned long int>(b),rnd_mode); //mpfr_pow_ui
2912 inline const mpreal pow(const long double a, const long int b, mp_rnd_t rnd_mode)
2917 inline const mpreal pow(const long double a, const int b, mp_rnd_t rnd_mode)
2919 return pow(mpreal(a),static_cast<long int>(b),rnd_mode); // mpfr_pow_si
2927 inline const mpreal pow(const double a, const unsigned long int b, mp_rnd_t rnd_mode)
2932 inline const mpreal pow(const double a, const unsigned int b, mp_rnd_t rnd_mode)
2934 return pow(mpreal(a),static_cast<unsigned long int>(b),rnd_mode); // mpfr_pow_ui
2937 inline const mpreal pow(const double a, const long int b, mp_rnd_t rnd_mode)
2942 inline const mpreal pow(const double a, const int b, mp_rnd_t rnd_mode)
2944 return pow(mpreal(a),static_cast<long int>(b),rnd_mode); // mpfr_pow_si
2968 static const int radix = 2;
3006 static const int min_exponent = MPFR_EMIN_DEFAULT;
3007 static const int max_exponent = MPFR_EMAX_DEFAULT;
3008 MPREAL_PERMISSIVE_EXPR static const int min_exponent10 = (int) (MPFR_EMIN_DEFAULT * 0.3010299956639811);
3009 MPREAL_PERMISSIVE_EXPR static const int max_exponent10 = (int) (MPFR_EMAX_DEFAULT * 0.3010299956639811);
3033 inline static int digits() { return int(mpfr::mpreal::get_default_prec()); }
3034 inline static int digits(const mpfr::mpreal& x) { return x.getPrecision(); }
3036 inline static int digits10(mp_prec_t precision = mpfr::mpreal::get_default_prec())
3041 inline static int digits10(const mpfr::mpreal& x)
3046 inline static int max_digits10(mp_prec_t precision = mpfr::mpreal::get_default_prec())
3065 static const int digits = 53;
3066 static const int digits10 = 15;
3067 static const int max_digits10 = 16;