HomeFreeBSD

lib/libc/amd64/string: implement strpbrk() through strcspn()

Description

lib/libc/amd64/string: implement strpbrk() through strcspn()

This lets us use our optimised strcspn() routine for strpbrk() calls.

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/D41980

(cherry picked from commit f4fc317c364f2c81ad3d36763d8e5a60393ddbd1)

Details

Provenance
fuzAuthored on Sep 25 2023, 9:43 PM
Differential Revision
D41980: lib/libc/amd64/string: implement strpbrk() through strcspn()
Parents
rGd5782dbd011c: share/man/man7/simd.7: document new amd64 baseline strcmp()
Branches
Unknown
Tags
Unknown