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

Function decFloatCopyAbs

extern/decNumber/decBasic.c:1831–1835  ·  view source on GitHub ↗

------------------------------------------------------------------ */ 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

Source from the content-addressed store, hash-verified

1829/* This is a bitwise operation; no errors or exceptions are possible. */
1830/* ------------------------------------------------------------------ */
1831decFloat * 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 */

Callers 3

decFloatCompareTotalMagFunction · 0.85
decFloatMaxMagFunction · 0.85
decFloatMinMagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected