| 912 | #endif |
| 913 | |
| 914 | txBigInt *fxBigInt_alloc(txMachine* the, txU4 size) |
| 915 | { |
| 916 | #ifndef mxCompile |
| 917 | txBigInt* bigint; |
| 918 | if (size > 0xFFFF) { |
| 919 | fxAbort(the, XS_NOT_ENOUGH_MEMORY_EXIT); |
| 920 | } |
| 921 | mxPushUndefined(); |
| 922 | bigint = &the->stack->value.bigint; |
| 923 | bigint->data = fxNewChunk(the, fxMultiplyChunkSizes(the, size, sizeof(txU4))); |
| 924 | bigint->size = size; |
| 925 | bigint->sign = 0; |
| 926 | the->stack->kind = XS_BIGINT_KIND; |
| 927 | return bigint; |
| 928 | #else |
| 929 | return NULL; |
| 930 | #endif |
| 931 | } |
| 932 | |
| 933 | void fxBigInt_free(txMachine* the, txBigInt *bigint) |
| 934 | { |
no test coverage detected