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

Function decNumberCompareTotal

extern/decNumber/decNumber.c:894–900  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

892/* -1, 0, or 1. */
893/* ------------------------------------------------------------------ */
894decNumber * 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 */

Callers

nothing calls this directly

Calls 2

decCompareOpFunction · 0.85
decStatusFunction · 0.85

Tested by

no test coverage detected