aboutsummaryrefslogtreecommitdiff
path: root/src/base/mem/set64.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-05 09:47:21 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-05 10:54:20 -0800
commit521d01e8ad87e931af3e9a763cc84a6cf7fe5ee3 (patch)
treef544119060c3eefc7b0fec6cff1740a362541213 /src/base/mem/set64.c
parent158d9b84f14457136379f42e7c071eb79d87ee6b (diff)
Feat: basic string and memory functions
Continue filling out the basic standard lib functions. Included prototypes of the str* and mem* families. Plan to add e(str|mem) and n(str|mem) variants as well.
Diffstat (limited to 'src/base/mem/set64.c')
-rw-r--r--src/base/mem/set64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/mem/set64.c b/src/base/mem/set64.c
index 7000866..669c70c 100644
--- a/src/base/mem/set64.c
+++ b/src/base/mem/set64.c
@@ -1,12 +1,12 @@
#include "internal.h"
int
-mem·set64(void *dst, uint64 val, uintptr size)
+mem·set64(void *dst, uintptr size, uint64 val)
{
intptr i;
for(i = 0; i < (size & (~7)); i += 8)
- memcpy((byte*)dst + i, &val, 8);
+ mem·copy((byte*)dst + i, 8, &val);
for(; i < size; i++)
((byte*)dst)[i] = ((byte*)&val)[i&7];