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

Function xsum_small_div_int

xs/sources/xsum.c:2191–2200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2189/* FIND RESULT OF DIVIDING SMALL ACCUMULATOR BY SIGNED INTEGER. */
2190
2191xsum_flt xsum_small_div_int
2192 (xsum_small_accumulator *restrict sacc, int div)
2193{ if (xsum_debug) c_printf("\nDIVIDE SMALL ACCUMULATOR BY SIGNED INTEGER\n");
2194 if (div < 0)
2195 { return -xsum_small_div_unsigned (sacc, (unsigned) -div);
2196 }
2197 else
2198 { return xsum_small_div_unsigned (sacc, (unsigned) div);
2199 }
2200}
2201
2202
2203/* FIND RESULT OF DIVIDING LARGE ACCUMULATOR BY UNSIGNED INTEGER. */

Callers 1

xsum_large_div_intFunction · 0.85

Calls 1

xsum_small_div_unsignedFunction · 0.85

Tested by

no test coverage detected