[PATCH v2 0/4] newlib: RISC-V: Optimize strcmp implementation in newlib

puranikvinit <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
This patch series enhances the RISC-V strcmp implementation in newlib's
libc/machine/riscv/strcmp.S. The changes focus on improving code
readability and optimizing performance, particularly for speed-optimized
builds. The series includes label refactoring for clarity, use of
compressed registers to reduce code size, and leveraging RISC-V Zb*
extensions (specifically Zbb) for faster null detection and mismatch
handling.

The patches are structured to be incremental and independent where
possible, allowing maintainers to review and apply them selectively.
They have been tested on spike against the already existing testsuite to
ensure correctness and performance improvements.

puranikvinit (4):
  RISC-V: strcmp: refactor labels for improved readability
  RISC-V: strcmp [speed optimized]: use compressed registers wherever
    possible
  RISC-V: strcmp [speed optimized]: optimize null detect logic for
    targets with Zb* extension support
  RISC-V: strcmp [speed optimized]: optimize mismatch logic for targets
    with Zb* extension support

 newlib/libc/machine/riscv/strcmp.S | 178 ++++++++++++++++-------------
 1 file changed, 101 insertions(+), 77 deletions(-)

-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.