HomeFreeBSD

lib/libc/aarch64/string: add strlcpy SIMD implementation

Description

lib/libc/aarch64/string: add strlcpy SIMD implementation

This changeset includes a port of the SIMD implementation of
strlcpy for amd64 to Aarch64.

It is based on memccpy (D46170) with some minor differences.

Performance is significantly better than the scalar implementation.

Benchmark results are as usual generated by the strperf utility
written by fuz.

See the DR for benchmark results.

Tested by: fuz (exprun)
Reviewed by: fuz, emaste
Sponsored by: Google LLC (GSoC 2024)
PR: 281175
Differential Revision: https://reviews.freebsd.org/D46243

Details

Provenance
getzAuthored on Aug 26 2024, 6:14 PM
fuzCommitted on Fri, Jan 10, 3:02 PM
Reviewer
fuz
Differential Revision
D46243: lib/libc/aarch64/string: add strlcpy SIMD implementation
Parents
rG79287d783c72: lib/libc/aarch64/string: strcat enable use of SIMD
Branches
Unknown
Tags
Unknown