MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / decCopyFit

Function decCopyFit

extern/decNumber/decNumber.c:6841–6846  ·  view source on GitHub ↗

------------------------------------------------------------------ */ 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

Source from the content-addressed store, hash-verified

6839/* All fields are updated as required. */
6840/* ------------------------------------------------------------------ */
6841static 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 */

Callers 6

decNumberLog10Function · 0.85
decNumber.cFile · 0.85
decExpOpFunction · 0.85
decQuantizeOpFunction · 0.85
decCompareOpFunction · 0.85
decRoundOperandFunction · 0.85

Calls 1

decSetCoeffFunction · 0.85

Tested by

no test coverage detected