* libc/string/memset.c (memset): Fix comment.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 2002-11-27  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
|  | 	* libc/string/memset.c (memset): Fix comment. | ||||||
|  |  | ||||||
| 2002-11-26  Christopher Faylor  <cgf@redhat.com> | 2002-11-26  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* libc/string/memset.c (memset): Move initialization of 'd' earlier in | 	* libc/string/memset.c (memset): Move initialization of 'd' earlier in | ||||||
|   | |||||||
| @@ -59,14 +59,12 @@ _DEFUN (memset, (m, c, n), | |||||||
|   int i; |   int i; | ||||||
|   unsigned long buffer; |   unsigned long buffer; | ||||||
|   unsigned long *aligned_addr; |   unsigned long *aligned_addr; | ||||||
|   unsigned int d = c & 0xff; |   unsigned int d = c & 0xff;	/* To avoid sign extension, copy C to an | ||||||
|  | 				   unsigned variable.  */ | ||||||
|  |  | ||||||
|   if (!TOO_SMALL (n) && !UNALIGNED (m)) |   if (!TOO_SMALL (n) && !UNALIGNED (m)) | ||||||
|     { |     { | ||||||
|       /* If we get this far, we know that n is large and m is word-aligned. */ |       /* 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.  */ |  | ||||||
|  |  | ||||||
|       aligned_addr = (unsigned long*)m; |       aligned_addr = (unsigned long*)m; | ||||||
|  |  | ||||||
|       /* Store D into each char sized location in BUFFER so that |       /* Store D into each char sized location in BUFFER so that | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user