mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 09:13:09 +00:00
util file
This commit is contained in:
parent
df932544bd
commit
772dc5c9e7
15
evm/src/cpu/kernel/asm/hash/blake/util.asm
Normal file
15
evm/src/cpu/kernel/asm/hash/blake/util.asm
Normal file
@ -0,0 +1,15 @@
|
||||
// Load a 64-bit word from kernel general memory.
|
||||
%macro mload_blake_word
|
||||
// stack: offset
|
||||
DUP1
|
||||
%mload_kernel_general_u32
|
||||
// stack: hi, offset
|
||||
%shl_const(32)
|
||||
// stack: hi << 32, offset
|
||||
SWAP1
|
||||
// stack: offset, hi << 32
|
||||
%add_const(4)
|
||||
%mload_kernel_general_u32
|
||||
OR
|
||||
// stack: (hi << 32) | lo
|
||||
%endmacro
|
||||
Loading…
x
Reference in New Issue
Block a user