HomeFreeBSD

lib/libc/tests/string/stpncpy_test.c: extend for upcoming SSE implementation

Description

lib/libc/tests/string/stpncpy_test.c: extend for upcoming SSE implementation

This adds additional unit tests validating the function for
All possible alignment offsets of source and destination.

Also extend the test to allow testing of an external stpncpy
implementation, which greatly simplifies the development of
custom implementations.

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

(cherry picked from commit 6fa9e7d8737548ef93c573387ce62402c368d486)

Details

Provenance
fuzAuthored on Nov 5 2023, 4:02 AM
Differential Revision
D42519: lib/libc/amd64/string: add stpncpy scalar, baseline implementation
Parents
rG8dc035482310: share/man/man7/simd.7: document amd64 SIMD use for strsep()
Branches
Unknown
Tags
Unknown