summaryrefslogtreecommitdiff
path: root/src/libms/libms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libms/libms.c')
-rw-r--r--src/libms/libms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libms/libms.c b/src/libms/libms.c
index 2b77adc3..0e678693 100644
--- a/src/libms/libms.c
+++ b/src/libms/libms.c
@@ -28,10 +28,10 @@ int LMSi_MemCmp(const char *p1, const char *p2, int n) {
}
void LMSi_MemCopy(char *p1, const char *p2, int n) {
- // TODO register usage too optimal
+ // https://decomp.me/scratch/JOWiM
+ // NONMATCHING - register usage too optimal
+ // Look, how difficult can an unrolled memcopy be to match
for (int i = 0; i < n; i++) {
- *p1 = *p2;
- p1++;
- p2++;
+ *(p1++) = *(p2++);
}
}