This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Replace __bzero with memset
- From: Andreas Schwab <schwab at suse dot de>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: "libc-alpha\@sourceware.org" <libc-alpha at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 12 Jun 2017 13:42:43 +0200
- Subject: Re: [PATCH] Replace __bzero with memset
- Authentication-results: sourceware.org; auth=none
- References: <AM5PR0802MB2610A62A60E00B406466E76983CD0@AM5PR0802MB2610.eurprd08.prod.outlook.com>
On Jun 12 2017, Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
> diff --git a/string/bits/string2.h b/string/bits/string2.h
> index 591533658dcef1dbde3d0579c795b72b8ef72f43..c3fc3eae592ecef5d2a0fdd94c0d65cd1407c9d6 100644
> --- a/string/bits/string2.h
> +++ b/string/bits/string2.h
> @@ -52,9 +52,6 @@
> #define __string2_1bptr_p(__x) \
> ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
>
> -/* 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?
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."