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

Function fxBigInt_uand

xs/sources/xsBigInt.c:1107–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107txBigInt *fxBigInt_uand(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1108{
1109 int i;
1110 if (a->size > b->size) {
1111 txBigInt *t = b;
1112 b = a;
1113 a = t;
1114 }
1115 if (r == NULL)
1116 r = fxBigInt_alloc(the, a->size);
1117 else
1118 r->size = a->size;
1119 for (i = 0; i < a->size; i++)
1120 r->data[i] = a->data[i] & b->data[i];
1121 return(r);
1122}
1123
1124txBigInt *fxBigInt_or(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1125{

Callers 4

fx_BigInt_asIntNFunction · 0.85
fx_BigInt_asUintNFunction · 0.85
fxBigInt_andFunction · 0.85
fxBigInt_orFunction · 0.85

Calls 1

fxBigInt_allocFunction · 0.85

Tested by

no test coverage detected