* libc/string/memset.c (memset): Move initialization of 'd' earlier in
function.
This commit is contained in:
parent
5362be5926
commit
b3cc01b02b
|
@ -1,3 +1,8 @@
|
|||
2002-11-26 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* libc/string/memset.c (memset): Move initialization of 'd' earlier in
|
||||
function.
|
||||
|
||||
2002-11-25 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* libc/string/memset.c (memset): Minor optimization: Use new 'd'
|
||||
|
|
|
@ -59,13 +59,13 @@ _DEFUN (memset, (m, c, n),
|
|||
int i;
|
||||
unsigned long buffer;
|
||||
unsigned long *aligned_addr;
|
||||
unsigned int d = c & 0xff;
|
||||
|
||||
if (!TOO_SMALL (n) && !UNALIGNED (m))
|
||||
{
|
||||
/* If we get this far, we know that n is large and m is word-aligned. */
|
||||
|
||||
/* To avoid sign extention, copy C to an unsigned variable. */
|
||||
unsigned int d = c & 0xff;
|
||||
|
||||
aligned_addr = (unsigned long*)m;
|
||||
|
||||
|
|
Loading…
Reference in New Issue