mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
delete duplicates
This commit is contained in:
parent
d42250d677
commit
6e5fe43c7e
@ -257,13 +257,6 @@
|
||||
// stack: (empty)
|
||||
%endmacro
|
||||
|
||||
// Store a single byte to kernel general memory.
|
||||
%macro mstore_kernel_general
|
||||
// stack: offset, value
|
||||
%mstore_kernel(@SEGMENT_KERNEL_GENERAL)
|
||||
// stack: (empty)
|
||||
%endmacro
|
||||
|
||||
// Store a big-endian u32, consisting of 4 bytes (c_3, c_2, c_1, c_0),
|
||||
// to kernel code.
|
||||
%macro mstore_kernel_code_u32
|
||||
@ -299,39 +292,6 @@
|
||||
// stack:
|
||||
%endmacro
|
||||
|
||||
%macro mload_kernel_general
|
||||
// stack:
|
||||
%mload_kernel(@SEGMENT_KERNEL_GENERAL)
|
||||
// stack: byte
|
||||
%endmacro
|
||||
|
||||
// Load a big-endian u32, consisting of 4 bytes (c_0, c_1, c_2, c_3),
|
||||
// from kernel general.
|
||||
%macro mload_kernel_general_u32
|
||||
// stack: offset
|
||||
DUP1
|
||||
%mload_kernel_general
|
||||
// stack: c0 , offset
|
||||
DUP2
|
||||
%add_const(1)
|
||||
%mload_kernel_general
|
||||
%shl_const(8)
|
||||
OR
|
||||
// stack: c0 | (c1 << 8) , offset
|
||||
DUP2
|
||||
%add_const(2)
|
||||
%mload_kernel_general
|
||||
%shl_const(16)
|
||||
OR
|
||||
// stack: c0 | (c1 << 8) | (c2 << 16), offset
|
||||
SWAP1
|
||||
%add_const(3)
|
||||
%mload_kernel_general
|
||||
%shl_const(24)
|
||||
OR
|
||||
// stack: c0 | (c1 << 8) | (c2 << 16) | (c3 << 24)
|
||||
%endmacro
|
||||
|
||||
// set offset i to offset j in kernel general
|
||||
%macro mupdate_kernel_general
|
||||
// stack: j, i
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user