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 v2 05/15] RISC-V: Generic <string.h> Routines



On 03/01/2018 14:02, Joseph Myers wrote:
> On Wed, 3 Jan 2018, Adhemerval Zanella wrote:
> 
>> Another thing I would like to check before submitting for 2.28 is a way to
>> add a generic index_last_/index_fist_ without using __builtin_{clzl,ctzl}.
>> On some architectures it is implemented by a libgcc call and calling a
>> function call pretty much defeat the optimizations done (I added a generic
>> one for SH).
> 
> Maybe a configure test should check whether those use a libgcc function, 
> so the default can be set based on that?
> 

Yes that is one option I have in mind.


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