------------------------------------------------------------------ */ 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
| 757 | /* ------------------------------------------------------------------ */ |
| 758 | /* This just calls the routine shared with Subtract */ |
| 759 | decNumber * 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 */ |
nothing calls this directly
no test coverage detected