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

Function fxBigInt_lsl

xs/sources/xsBigInt.c:1248–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246}
1247
1248txBigInt *fxBigInt_lsl(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1249{
1250 if (b->sign) {
1251 if (a->sign) {
1252 r = fxBigInt_ulsr1(the, r, a, b->data[0]);
1253 if (b->data[0])
1254 r = fxBigInt_uadd(the, C_NULL, r, (txBigInt *)&gxBigIntOne);
1255 r->sign = 1;
1256 }
1257 else
1258 r = fxBigInt_ulsr1(the, r, a, b->data[0]);
1259 }
1260 else {
1261 r = fxBigInt_ulsl1(the, r, a, b->data[0]);
1262 r->sign = a->sign;
1263 }
1264 return fxBigInt_fit(the, r);
1265}
1266
1267txBigInt *fxBigInt_ulsl1(txMachine* the, txBigInt *r, txBigInt *a, txU4 sw)
1268{

Callers

nothing calls this directly

Calls 4

fxBigInt_ulsr1Function · 0.85
fxBigInt_uaddFunction · 0.85
fxBigInt_ulsl1Function · 0.85
fxBigInt_fitFunction · 0.85

Tested by

no test coverage detected