| 1355 | */ |
| 1356 | |
| 1357 | txBigInt *fxBigInt_add(txMachine* the, txBigInt *rr, txBigInt *aa, txBigInt *bb) |
| 1358 | { |
| 1359 | if ((aa->sign ^ bb->sign) == 0) { |
| 1360 | rr = fxBigInt_uadd(the, rr, aa, bb); |
| 1361 | if (aa->sign) |
| 1362 | rr->sign = 1; |
| 1363 | } |
| 1364 | else { |
| 1365 | if (!aa->sign) |
| 1366 | rr = fxBigInt_usub(the, rr, aa, bb); |
| 1367 | else |
| 1368 | rr = fxBigInt_usub(the, rr, bb, aa); |
| 1369 | } |
| 1370 | mxBigInt_meter(rr->size); |
| 1371 | return(rr); |
| 1372 | } |
| 1373 | |
| 1374 | txBigInt *fxBigInt_dec(txMachine* the, txBigInt *r, txBigInt *a) |
| 1375 | { |
no test coverage detected