MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / xsum_small_negate

Function xsum_small_negate

xs/sources/xsum.c:1107–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105/* NEGATE THE VALUE IN A SMALL ACCUMULATOR. */
1106
1107void xsum_small_negate (xsum_small_accumulator *restrict sacc)
1108{
1109 int i;
1110
1111 if (xsum_debug) c_printf("\nNEGATING A SMALL ACCUMULATOR\n");
1112
1113 for (i = 0; i < XSUM_SCHUNKS; i++)
1114 { sacc->chunk[i] = -sacc->chunk[i];
1115 }
1116
1117 if (sacc->Inf != 0)
1118 { sacc->Inf ^= XSUM_SIGN_MASK;
1119 }
1120}
1121
1122
1123/* RETURN THE RESULT OF ROUNDING A SMALL ACCUMULATOR. The rounding mode

Callers 2

xsum_large_negateFunction · 0.85
xsum_small_div_unsignedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected