mirror of
https://github.com/byteworksinc/ORCALib.git
synced 2026-04-21 18:17:21 +00:00
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:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user