HomeFreeBSD

lib/libc/amd64/string/strcat.S: enable use of SIMD

Description

lib/libc/amd64/string/strcat.S: enable use of SIMD

strcat has a bespoke scalar assembly implementation we
inherited from NetBSD. While it performs well, it is
better to call into our SIMD implementations if any SIMD
features are available at all. So do that and implement
strcat() by calling into strlen() and strcpy() if these
are available.

Sponsored by: The FreeBSD Foundation
Tested by: developers@, exp-run
Approved by: mjg
MFC after: 1 month
MFC to: stable/14
PR: 275785
Differential Reviison: https://reviews.freebsd.org/D42600

(cherry picked from commit aff9143a242c0012b0195b3666e03fa3b7cd33e8)

Details

Provenance
fuzAuthored on Nov 14 2023, 6:09 PM
Parents
rG57da891ad354: share/man/man7/simd.7: document simd-enhanced strncpy, stpncpy
Branches
Unknown
Tags
Unknown