Implement memset_explicit (C23).

This is just equivalent to memset in ORCA/C, since there are no optimizations that would remove memset operations. Note that in addition to clearing the old data in memory, this implementation of memset/memset_explicit also will not leave any of the old data in registers or in the stack space that it used.
This commit is contained in:
Stephen Heumann
2025-09-21 17:52:48 -05:00
parent 81e6b8b0a8
commit 37af2453b7
+2 -3
View File
@@ -454,7 +454,7 @@ lb11 ply get the original source pointer
****************************************************************
*
* memset - set memory to a value
* memset,memset_explicit - set memory to a value
*
* Set len bytes, starting at p, to val.
*
@@ -466,11 +466,10 @@ lb11 ply get the original source pointer
* Outputs:
* X-A - p
*
* Notes: The memory areas should not overlap
*
****************************************************************
*
memset start
memset_explicit entry
p equ 4 destination pointer
val equ 8 source pointer
len equ 10 length to compare