InstallZipScreen improvements, small cleanup

This commit is contained in:
Henrik Rydgård
2026-02-10 11:34:59 +01:00
parent 2bc43810a8
commit 2c0bdcf678
6 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ void ParallelMemcpy(ThreadManager *threadMan, void *dst, const void *src, size_t
char *d = (char *)dst;
const char *s = (const char *)src;
ParallelRangeLoop(threadMan, [&](int l, int h) {
ParallelRangeLoop(threadMan, [d, s](int l, int h) {
memmove(d + l, s + l, h - l);
}, 0, (int)bytes, 128 * 1024, priority);
}
@@ -145,7 +145,7 @@ void ParallelMemset(ThreadManager *threadMan, void *dst, uint8_t value, size_t b
// unknown's testing showed that 128kB is an appropriate minimum size.
char *d = (char *)dst;
ParallelRangeLoop(threadMan, [&](int l, int h) {
ParallelRangeLoop(threadMan, [d, value](int l, int h) {
memset(d + l, value, h - l);
}, 0, (int)bytes, 128 * 1024, priority);
}