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

Function decInfinity

extern/decNumber/decBasic.c:3573–3578  ·  view source on GitHub ↗

------------------------------------------------------------------ */ decInfinity -- set canonical Infinity with sign from a decFloat */ / result gets a canonical Infinity */ df is source decFloat (only the sign is used) */ returns result */ / df may be the same as result

Source from the content-addressed store, hash-verified

3571/* df may be the same as result */
3572/* ------------------------------------------------------------------ */
3573static decFloat *decInfinity(decFloat *result, const decFloat *df) {
3574 uInt sign=DFWORD(df, 0); // save source signword
3575 decFloatZero(result); // clear everything
3576 DFWORD(result, 0)=DECFLOAT_Inf | (sign & DECFLOAT_Sign);
3577 return result;
3578 } // decInfinity
3579
3580/* ------------------------------------------------------------------ */
3581/* decNaNs -- handle NaN argument(s) */

Callers 12

decCanonicalFunction · 0.85
decDivideFunction · 0.85
decFloatAddFunction · 0.85
decFloatFMAFunction · 0.85
decFloatLogBFunction · 0.85
decFloatMultiplyFunction · 0.85
decFloatQuantizeFunction · 0.85
decFloatReduceFunction · 0.85
decFloatRotateFunction · 0.85
decFloatScaleBFunction · 0.85
decFloatShiftFunction · 0.85
decToIntegralFunction · 0.85

Calls 1

decFloatZeroFunction · 0.85

Tested by

no test coverage detected