Skip to content

Commit

Permalink
Reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Oct 23, 2023
1 parent ba61d15 commit 503a31b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions evm/src/cpu/kernel/asm/memory/memcpy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ memcpy_finish:
%%after:
%endmacro

// Similar logic than memcpy, but optimized for copying sequences of bytes.
// Similar logic to memcpy, but optimized for copying sequences of bytes.
global memcpy_bytes:
// stack: DST, SRC, count, retdest
DUP7
Expand Down Expand Up @@ -123,4 +123,4 @@ memcpy_bytes_finish:
%stack (dst: 3, src: 3, count) -> (dst, src, count, %%after)
%jump(memcpy_bytes)
%%after:
%endmacro
%endmacro
4 changes: 2 additions & 2 deletions evm/src/cpu/kernel/asm/memory/syscalls.asm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ calldataload_large_offset:
GET_CONTEXT
%stack (context, kexit_info, dest_offset, offset, size) ->
(context, @SEGMENT_MAIN_MEMORY, dest_offset, context, $segment, offset, size, wcopy_after, kexit_info)
%jump(memcpy)
%jump(memcpy_bytes)
%endmacro

wcopy_empty:
Expand Down Expand Up @@ -152,7 +152,7 @@ global sys_returndatacopy:
GET_CONTEXT
%stack (context, kexit_info, dest_offset, offset, size) ->
(context, @SEGMENT_MAIN_MEMORY, dest_offset, context, @SEGMENT_RETURNDATA, offset, size, wcopy_after, kexit_info)
%jump(memcpy)
%jump(memcpy_bytes)

returndatacopy_empty:
%stack (kexit_info, dest_offset, offset, size) -> (kexit_info)
Expand Down

0 comments on commit 503a31b

Please sign in to comment.