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] |
Similar to the strchr implementation, attached is an implementation of strrchr. Unlike the generic C version, this finds the last instance of a string without having to repeatedly call strchr. This gives notable performance improvements when there is more than one instance of the target character in the string (something the benchmarks never measure, by the way). OK? R. sysdeps/aarch64/strrchr.S: New file.
Attachment:
glibc-strrchr.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |