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

Function fxBigInt_uor

xs/sources/xsBigInt.c:1174–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174txBigInt *fxBigInt_uor(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1175{
1176 int i;
1177 if (a->size < b->size) {
1178 txBigInt *t = b;
1179 b = a;
1180 a = t;
1181 }
1182 if (r == NULL)
1183 r = fxBigInt_alloc(the, a->size);
1184 else
1185 r->size = a->size;
1186 for (i = 0; i < b->size; i++)
1187 r->data[i] = a->data[i] | b->data[i];
1188 for (; i < a->size; i++)
1189 r->data[i] = a->data[i];
1190 return(r);
1191}
1192
1193txBigInt *fxBigInt_xor(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1194{

Callers 2

fxBigInt_andFunction · 0.85
fxBigInt_orFunction · 0.85

Calls 1

fxBigInt_allocFunction · 0.85

Tested by

no test coverage detected