This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Replace __bzero with memset


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]