From cddd488e99dc558e3e71bda0d4212013432d04c8 Mon Sep 17 00:00:00 2001 From: yixy-only Date: Sun, 17 Aug 2025 12:32:18 +0800 Subject: [PATCH] [sinfl] Reduce unnecessary memcpy when memory does not overlap --- sinfl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sinfl.h b/sinfl.h index 3f60e88..cba5f4c 100644 --- a/sinfl.h +++ b/sinfl.h @@ -190,9 +190,7 @@ sinfl_read64(const void *p) { } static void sinfl_copy64(unsigned char **dst, unsigned char **src) { - unsigned long long n; - memcpy(&n, *src, 8); - memcpy(*dst, &n, 8); + memcpy(*dst, *src, 8); *dst += 8, *src += 8; } static unsigned char*