Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator+=() [1/12]

mpreal & mpfr::mpreal::operator+= ( const double u)
inline

Definition at line 1155 of file mpreal.h.

1156{
1157#if (MPFR_VERSION >= MPFR_VERSION_NUM(2,4,0))
1158 mpfr_add_d(mpfr_ptr(),mpfr_srcptr(),u,mpreal::get_default_rnd());
1159#else
1160 *this += mpreal(u);
1161#endif
1162
1164 return *this;
1165}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
::mpfr_ptr mpfr_ptr()
Definition mpreal.h:1765
#define MPREAL_MSVC_DEBUGVIEW_CODE
Definition mpreal.h:146

References get_default_rnd(), mpfr_ptr(), mpfr_srcptr(), mpreal(), and MPREAL_MSVC_DEBUGVIEW_CODE.