------------------------------------------------------------------ */ decCopyFit -- copy a number, truncating the coefficient if needed */ / dest is the target decNumber */ src is the source decNumber */ set is the context [used for length (digits) and rounding mode] */ residue is the residue accumulator
| 6839 | /* All fields are updated as required. */ |
| 6840 | /* ------------------------------------------------------------------ */ |
| 6841 | static void decCopyFit(decNumber *dest, const decNumber *src, |
| 6842 | decContext *set, Int *residue, uInt *status) { |
| 6843 | dest->bits=src->bits; |
| 6844 | dest->exponent=src->exponent; |
| 6845 | decSetCoeff(dest, set, src->lsu, src->digits, residue, status); |
| 6846 | } // decCopyFit |
| 6847 | |
| 6848 | /* ------------------------------------------------------------------ */ |
| 6849 | /* decSetCoeff -- set the coefficient of a number */ |
no test coverage detected