------------------------------------------------------------------ */ decFloatCopyAbs -- copy a decFloat as-is and set sign bit to 0 */ / result gets the copy of dfl with sign bit 0 */ dfl is the decFloat to copy */ returns result */ / This is a bitwise operation; no errors or exceptions
| 1829 | /* This is a bitwise operation; no errors or exceptions are possible. */ |
| 1830 | /* ------------------------------------------------------------------ */ |
| 1831 | decFloat * decFloatCopyAbs(decFloat *result, const decFloat *dfl) { |
| 1832 | if (dfl!=result) *result=*dfl; // copy needed |
| 1833 | DFBYTE(result, 0)&=~0x80; // zero sign bit |
| 1834 | return result; |
| 1835 | } // decFloatCopyAbs |
| 1836 | |
| 1837 | /* ------------------------------------------------------------------ */ |
| 1838 | /* decFloatCopyNegate -- copy a decFloat as-is with inverted sign bit */ |
no outgoing calls
no test coverage detected