| 692 | } |
| 693 | |
| 694 | txU8 fxToBigUint64(txMachine* the, txSlot* slot) |
| 695 | { |
| 696 | txBigInt* bigint = fxToBigInt(the, slot, 1); |
| 697 | txU8 result = bigint->data[0]; |
| 698 | if (bigint->size > 1) |
| 699 | result |= (txU8)(bigint->data[1]) << 32; |
| 700 | if (bigint->sign && result) { |
| 701 | result--; |
| 702 | result = 0xFFFFFFFFFFFFFFFFll - result; |
| 703 | } |
| 704 | return result; |
| 705 | } |
| 706 | |
| 707 | txBigInt* fxIntegerToBigInt(txMachine* the, txSlot* slot) |
| 708 | { |
no test coverage detected