------------------------------------------------------------------ */ 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. */ ------------------------------------------------
| 1762 | /* No error is possible, and no status can be set. */ |
| 1763 | /* ------------------------------------------------------------------ */ |
| 1764 | decFloat * 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 */ |
no outgoing calls
no test coverage detected