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 01/11] Improve generic strlen


On 12/19/2016 06:32 AM, Adhemerval Zanella wrote:
>> -      return char_ptr - str;
>> +      goto found;
> Why not just return 'char_ptr - str' and get rid of label?

Premature optimization, perhaps, having looked at gcc 6 output that failed to
merge the two code paths.


r~


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