]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/commitdiff
* libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,
authorChristopher Faylor <cgf@redhat.com>
Mon, 25 Nov 2002 21:11:58 +0000 (21:11 +0000)
committerChristopher Faylor <cgf@redhat.com>
Mon, 25 Nov 2002 21:11:58 +0000 (21:11 +0000)
introduced below, everywhere.

newlib/ChangeLog
newlib/libc/string/memset.c

index 10d5f903b399bb746284032c6f11a04445262e82..bc0eec6c54b23c30a4c43ff148a8bd655c80a893 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-25  Christopher Faylor  <cgf@redhat.com>
+
+       * libc/string/memset.c (memset): Minor optimization: Use new 'd'
+       variable, introduced below, everywhere.
+
 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
 
        * libc/string/memset.c (memset): Make it safe even if
index eceff8e9c9ebc42b496344935d98d0068383da5b..41b7d03bad3c54a52c380c280f770dafd6691f75 100644 (file)
@@ -103,7 +103,7 @@ _DEFUN (memset, (m, c, n),
 
   while (n--)
     {
-      *s++ = (char)c;
+      *s++ = (char)d;
     }
 
   return m;