| 893 | } |
| 894 | |
| 895 | void fxFromBigUint64(txMachine* the, txSlot* slot, txU8 value) |
| 896 | { |
| 897 | if (value > 0x00000000FFFFFFFFll) { |
| 898 | slot->value.bigint.data = fxNewChunk(the, 2 * sizeof(txU4)); |
| 899 | slot->value.bigint.data[0] = (txU4)(value); |
| 900 | slot->value.bigint.data[1] = (txU4)(value >> 32); |
| 901 | slot->value.bigint.size = 2; |
| 902 | } |
| 903 | else { |
| 904 | slot->value.bigint.data = fxNewChunk(the, sizeof(txU4)); |
| 905 | slot->value.bigint.data[0] = (txU4)value; |
| 906 | slot->value.bigint.size = 1; |
| 907 | } |
| 908 | slot->value.bigint.sign = 0; |
| 909 | slot->kind = XS_BIGINT_KIND; |
| 910 | } |
| 911 | |
| 912 | #endif |
| 913 |
no test coverage detected