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

Function decInvalid

extern/decNumber/decBasic.c:3557–3562  ·  view source on GitHub ↗

------------------------------------------------------------------ */ decInvalid -- set Invalid_operation result */ / result gets a canonical NaN */ set is the context */ returns result */ / status has Invalid_operation added

Source from the content-addressed store, hash-verified

3555/* status has Invalid_operation added */
3556/* ------------------------------------------------------------------ */
3557static decFloat *decInvalid(decFloat *result, decContext *set) {
3558 decFloatZero(result);
3559 DFWORD(result, 0)=DECFLOAT_qNaN;
3560 set->status|=DEC_Invalid_operation;
3561 return result;
3562 } // decInvalid
3563
3564/* ------------------------------------------------------------------ */
3565/* decInfinity -- set canonical Infinity with sign from a decFloat */

Callers 12

decDivideFunction · 0.85
decFloatAddFunction · 0.85
decFloatAndFunction · 0.85
decFloatFMAFunction · 0.85
decFloatInvertFunction · 0.85
decFloatMultiplyFunction · 0.85
decFloatOrFunction · 0.85
decFloatQuantizeFunction · 0.85
decFloatRotateFunction · 0.85
decFloatScaleBFunction · 0.85
decFloatShiftFunction · 0.85
decFloatXorFunction · 0.85

Calls 1

decFloatZeroFunction · 0.85

Tested by

no test coverage detected