From 5200c2844ed99ca7d9dcd62089edf2c06d2be96c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 21 Oct 2012 01:34:37 +0000 Subject: [PATCH] Optimized memset() can be configured to do 64-bit stores git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5244 42af7a65-404d-4744-a932-0658087f49c3 --- lib/string/lib_memset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string/lib_memset.c b/lib/string/lib_memset.c index 2828f1ff86..902a040c58 100644 --- a/lib/string/lib_memset.c +++ b/lib/string/lib_memset.c @@ -117,7 +117,7 @@ void *memset(void *s, int c, size_t n) n -= 4; } #else - /* Align to a 32-bit boundary */ + /* Check if there are at least 32-bits left to be zeroed */ if (n >= 4) {