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 12/06/2017 08:42, Andreas Schwab wrote:
> 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.
> 

It would be good also if you could update this based on your own patch [1],
which was already acked by me an Zack, since they seems to overlap.

[1] https://sourceware.org/ml/libc-alpha/2017-06/msg00113.html


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