From 31845bb1dbe13ede074c1a2147bf4b3dc4b4411b Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 21 May 2020 17:44:58 +0000 Subject: [PATCH] Core: Fix in svo_memset form unaligned CPUs git-svn-id: svn://ultimatepp.org/upp/trunk@14489 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Blit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Blit.h b/uppsrc/Core/Blit.h index 5b5b72347..797bb5968 100644 --- a/uppsrc/Core/Blit.h +++ b/uppsrc/Core/Blit.h @@ -229,7 +229,7 @@ void svo_memset(void *p, byte val, size_t len) return; } byte *t = (byte *)p; - while(len & 16) { + if(len & 16) { t[0] = val; t[1] = val; t[2] = val; t[3] = val; t[4] = val; t[5] = val; t[6] = val; t[7] = val; t[8] = val; t[9] = val; t[10] = val; t[11] = val;