19 mpfr_init2(rec->
value, Precision);
68 if( lastPrec!=Precision )
70 while( _mpfr_storage_v.size()<Precision+1 )
71 _mpfr_storage_v.push_back(
NULL);
72 lastPrec = (int)Precision;
73 lastList = _mpfr_storage_v[Precision];
127 {
WerrorS(
"internalError");
return;}
129 if( ref->refCount==0 )
147 if( ref->refCount==1 )
151 mpfr_set(newref->
value, ref->value, GMP_RNDN);
VAR bool _mpfr_storage_init
std::vector< amp::mpfr_record *> _mpfr_storage_v
mpfr_srcptr getReadPtr() const
static mpfr_record * newMpfr(unsigned int Precision)
void WerrorS(const char *s)
void initialize(int Precision)
static void deleteMpfr(mpfr_record *ref)
mpfr_reference & operator=(const mpfr_reference &r)
VAR gmp_randstate_t _mpfr_storage_rs
static mpfr_record_ptr & getList(unsigned int Precision)
static gmp_randstate_t * getRandState()