[PATCH v2 05/15] RISC-V: Generic <string.h> Routines

Palmer Dabbelt palmer@dabbelt.com
Sat Dec 23 22:01:00 GMT 2017


On Wed, 20 Dec 2017 08:48:15 PST (-0800), joseph@codesourcery.com wrote:
> On Tue, 19 Dec 2017, Palmer Dabbelt wrote:
>
>> This patch contains fast versions of the various routines from string.h
>> that have been implemented for RISC-V.  Since RISC-V doesn't define any
>> specific performance characteristics they're not optimized for any
>> particular microarchitecture, but are designed to be generally good.
>
> I would again suggest deferring adding such functions, especially the C
> ones, and instead helping with updating / reviewing RTH's optimized
> generic string functions posted a while back, and only adding
> RISC-V-specific ones if there is some clear reason RISC-V needs something
> non-generic for optimal performance.

Yes, that makes sense -- I think I forgot last time because they hadn't gone in 
yet.  We'll just use the generic ones for now, I'll add it to my TODO list to 
make sure they're generating good code for RISC-V.



More information about the Libc-alpha mailing list