mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-04-26 13:33:06 +00:00
Swap ordering in stack macro (#1230)
* Swap ordering in stack macro * Update comment
This commit is contained in:
parent
9508b49090
commit
7ebbb47fcd
@ -42,10 +42,10 @@ global mload_packing_u64_LE:
|
|||||||
// Post stack: offset'
|
// Post stack: offset'
|
||||||
global mstore_unpacking:
|
global mstore_unpacking:
|
||||||
// stack: context, segment, offset, value, len, retdest
|
// stack: context, segment, offset, value, len, retdest
|
||||||
%stack(context, segment, offset, value, len, retdest) -> (context, segment, offset, value, len, len, offset, retdest)
|
%stack(context, segment, offset, value, len, retdest) -> (context, segment, offset, value, len, offset, len, retdest)
|
||||||
// stack: context, segment, offset, value, len, len, offset, retdest
|
// stack: context, segment, offset, value, len, offset, len, retdest
|
||||||
MSTORE_32BYTES
|
MSTORE_32BYTES
|
||||||
// stack: len, offset, retdest
|
// stack: offset, len, retdest
|
||||||
ADD SWAP1
|
ADD SWAP1
|
||||||
// stack: retdest, offset'
|
// stack: retdest, offset'
|
||||||
JUMP
|
JUMP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user