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

Function fxBigInt_uxor

xs/sources/xsBigInt.c:1229–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1227}
1228
1229txBigInt *fxBigInt_uxor(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1230{
1231 int i;
1232 if (a->size < b->size) {
1233 txBigInt *t = b;
1234 b = a;
1235 a = t;
1236 }
1237 if (r == NULL)
1238 r = fxBigInt_alloc(the, a->size);
1239 else
1240 r->size = a->size;
1241 for (i = 0; i < b->size; i++)
1242 r->data[i] = a->data[i] ^ b->data[i];
1243 for (; i < a->size; i++)
1244 r->data[i] = a->data[i];
1245 return(r);
1246}
1247
1248txBigInt *fxBigInt_lsl(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b)
1249{

Callers 1

fxBigInt_xorFunction · 0.85

Calls 1

fxBigInt_allocFunction · 0.85

Tested by

no test coverage detected