Files
src/lib
Strahinja Stanišić e09c1583ed libc: scalar strlen() in RISC-V assembly
Includes a scalar implementation of strlen() for the RISC-V
architecture and changes to the corresponding manpage.

Performance was benchamarked using before and after:
https://github.com/clausecker/strperf

os: FreeBSD
arch: riscv
        │ strlen_baseline │             strlen_scalar              │
        │     sec/op      │   sec/op     vs base                   │
Short        541.2µ ± 17%   401.6µ ± 0%  -25.78% (p=0.000 n=21+20)
Mid          249.6µ ±  3%   191.9µ ± 0%  -23.13% (p=0.000 n=21+20)
Long         124.6µ ±  0%   110.7µ ± 0%  -11.13% (p=0.000 n=21+20)
geomean      256.3µ         204.3µ       -20.26%

        │ strlen_baseline │              strlen_scalar               │
        │       B/s       │      B/s       vs base                   │
Short       220.3Mi ± 14%    296.8Mi ± 0%  +34.74% (p=0.000 n=21+20)
Mid         477.6Mi ±  3%    621.3Mi ± 0%  +30.09% (p=0.000 n=21+20)
Long        956.9Mi ±  0%   1076.7Mi ± 0%  +12.52% (p=0.000 n=21+20)
geomean     465.2Mi          583.4Mi       +25.40%

MFC after:	1 month
MFC to:		stable/15
Approved by:	mhorne, markj (mentor)
Reviewed by:	fuz
Sponsored by:	Google LLC (GSoC 2024)
Differential Revision:	https://reviews.freebsd.org/D45693
2025-10-31 13:47:59 +01:00
..
2025-09-04 16:06:47 -07:00
2024-10-14 10:26:17 -07:00
2024-10-14 10:26:17 -07:00
2025-01-01 15:11:06 -06:00
2025-09-28 21:28:12 -07:00
2024-10-14 10:26:17 -07:00
2025-10-02 02:37:35 +01:00
2024-10-14 10:26:17 -07:00
2025-10-03 19:46:55 +02:00
2025-08-08 13:27:26 -05:00
2024-10-08 16:13:39 -03:00
2024-10-14 10:26:17 -07:00
2025-07-17 16:36:17 -07:00
2024-10-14 10:26:17 -07:00
2025-08-06 12:31:24 +01:00
2024-11-12 12:11:51 -05:00
2025-10-23 12:03:29 -07:00
2025-09-30 09:14:05 +01:00
2025-10-28 19:24:55 +00:00
2025-10-11 13:13:19 +03:00