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

Function decFloatZero

extern/decNumber/decCommon.c:1764–1775  ·  view source on GitHub ↗

------------------------------------------------------------------ */ decFloatZero -- set to canonical (integer) zero */ / df is the decFloat format number to integer +0 (q=0, c=+0) */ returns df */ / No error is possible, and no status can be set. */ ------------------------------------------------

Source from the content-addressed store, hash-verified

1762/* No error is possible, and no status can be set. */
1763/* ------------------------------------------------------------------ */
1764decFloat * decFloatZero(decFloat *df){
1765 DFWORD(df, 0)=ZEROWORD; // set appropriate top word
1766 #if DOUBLE || QUAD
1767 DFWORD(df, 1)=0;
1768 #if QUAD
1769 DFWORD(df, 2)=0;
1770 DFWORD(df, 3)=0;
1771 #endif
1772 #endif
1773 // decFloatShow(df, "zero");
1774 return df;
1775 } // decFloatZero
1776
1777/* ------------------------------------------------------------------ */
1778/* Private generic function (not format-specific) for development use */

Callers 14

decDivideFunction · 0.85
decFloatCompareFunction · 0.85
decFloatCompareSignalFunction · 0.85
decFloatCompareTotalFunction · 0.85
decFloatFMAFunction · 0.85
decFloatNextMinusFunction · 0.85
decFloatNextPlusFunction · 0.85
decFloatNextTowardFunction · 0.85
decFloatReduceFunction · 0.85
decFloatShiftFunction · 0.85
decInvalidFunction · 0.85
decInfinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected