| 1311 | |
| 1312 | template<unsigned int Precision> |
| 1313 | mpfr_ptr ampf<Precision>::getWritePtr() |
| 1314 | { |
| 1315 | if( rval->refCount==1 ) |
| 1316 | return rval->value; |
| 1317 | mpfr_record *newrval = mpfr_storage::newMpfr(Precision); |
| 1318 | mpfr_set(newrval->value, rval->value, GMP_RNDN); |
| 1319 | rval->refCount--; |
| 1320 | rval = newrval; |
| 1321 | return rval->value; |
| 1322 | } |
| 1323 | |
| 1324 | template<unsigned int Precision> |
| 1325 | bool ampf<Precision>::isFiniteNumber() const |
no outgoing calls
no test coverage detected