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

Function fxBigInt_makepoly

xs/sources/xsBigInt.c:1771–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1769}
1770
1771static void fxBigInt_makepoly(txBigInt *r, txBigInt *a, int t)
1772{
1773 int n;
1774 txU4 *rp, *ap;
1775
1776 /* make up a polynomial a_t*b^n + a_{t-1}*b^{n-1} + ... */
1777 n = r->size;
1778 rp = &r->data[n];
1779 ap = a->data;
1780 while (--n >= 0) {
1781 *--rp = t < 0 ? 0: ap[t];
1782 --t;
1783 }
1784}
1785
1786#if BN_NO_ULDIVMOD
1787static txU8

Callers 1

fxBigInt_udivFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected