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

Function decNumberAdd

extern/decNumber/decNumber.c:759–768  ·  view source on GitHub ↗

------------------------------------------------------------------ */ decNumberAdd -- add two Numbers */ / This computes C = A + B */ / res is C, the result. C may be A and/or B (e.g., X=X+X) */ lhs is A */ rhs is B

Source from the content-addressed store, hash-verified

757/* ------------------------------------------------------------------ */
758/* This just calls the routine shared with Subtract */
759decNumber * decNumberAdd(decNumber *res, const decNumber *lhs,
760 const decNumber *rhs, decContext *set) {
761 uInt status=0; // accumulator
762 decAddOp(res, lhs, rhs, set, 0, &status);
763 if (status!=0) decStatus(res, status, set);
764 #if DECCHECK
765 decCheckInexact(res, set);
766 #endif
767 return res;
768 } // decNumberAdd
769
770/* ------------------------------------------------------------------ */
771/* decNumberAnd -- AND two Numbers, digitwise */

Callers

nothing calls this directly

Calls 2

decStatusFunction · 0.85
decCheckInexactFunction · 0.85

Tested by

no test coverage detected