| 1716 | } |
| 1717 | |
| 1718 | txBigInt *fxBigInt_div(txMachine* the, txBigInt *q, txBigInt *a, txBigInt *b) |
| 1719 | { |
| 1720 | #ifndef mxCompile |
| 1721 | if (fxBigInt_iszero(b)) |
| 1722 | mxRangeError("zero divider"); |
| 1723 | #endif |
| 1724 | q = fxBigInt_udiv(the, q, a, b, C_NULL); |
| 1725 | if (!fxBigInt_iszero(q)) { |
| 1726 | if (a->sign) |
| 1727 | q->sign = !q->sign; |
| 1728 | if (b->sign) |
| 1729 | q->sign = !q->sign; |
| 1730 | } |
| 1731 | mxBigInt_meter(q->size); |
| 1732 | return(q); |
| 1733 | } |
| 1734 | |
| 1735 | txBigInt *fxBigInt_mod(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b) |
| 1736 | { |
nothing calls this directly
no test coverage detected