------------------------------------------------------------------ */ decNumberCompareTotal -- compare two Numbers, using total ordering */ / This computes C = A ? B, under total ordering */ / res is C, the result. C may be A and/or B (e.g., X=X?X) */ lhs is A */ rhs is B
| 892 | /* -1, 0, or 1. */ |
| 893 | /* ------------------------------------------------------------------ */ |
| 894 | decNumber * decNumberCompareTotal(decNumber *res, const decNumber *lhs, |
| 895 | const decNumber *rhs, decContext *set) { |
| 896 | uInt status=0; // accumulator |
| 897 | decCompareOp(res, lhs, rhs, set, COMPTOTAL, &status); |
| 898 | if (status!=0) decStatus(res, status, set); |
| 899 | return res; |
| 900 | } // decNumberCompareTotal |
| 901 | |
| 902 | /* ------------------------------------------------------------------ */ |
| 903 | /* decNumberCompareTotalMag -- compare, total ordering of magnitudes */ |
nothing calls this directly
no test coverage detected