This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Replace __bzero with memset
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 12 Jun 2017 12:12:41 +0000
- Subject: Re: [PATCH] Replace __bzero with memset
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com;
- Nodisclaimer: True
- References: <AM5PR0802MB2610A62A60E00B406466E76983CD0@AM5PR0802MB2610.eurprd08.prod.outlook.com>,<mvm8tkxmnyk.fsf@suse.de>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Andreas Schwab wrote:
> -/* Set N bytes of S to 0. */
> -#define __bzero(s, n) __builtin_memset (s, '\0', n)
> -
> /* Copy SRC to DEST, returning pointer to final NUL byte. */
> #ifndef __stpcpy
> # define __stpcpy(dest, src) __builtin_stpcpy (dest, src)
> Does this depend on some other patch?
No, it's independent, but the patch tool often has difficulty if there are
unrelated changes nearby. There should not be a merge issue if the only
change is removal of lines which themselves match unchanged...
Wilco