HomeFreeBSD

libc: Use musl's optimized strchr and strchrnul

Description

libc: Use musl's optimized strchr and strchrnul

Parentheses added to HASZERO macro to avoid a GCC warning, and formatted
with clang-format as we have adopted these and don't consider them
'contrib' code.

Obtained from: musl (snapshot at commit 4d0a82170a25)
Reviewed by: kib (libc integration), mjg (both earlier)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17630

(cherry picked from commit 7f72497ef756ff7d03d5560c2d1c1f92f73fcb52)

Details

Provenance
emasteAuthored on Mar 2 2021, 1:57 AM
Reviewer
kib
Differential Revision
D17630: libc: Use musl's optimized strchr, strchrnul, strcspn
Parents
rG2f2988a3c73b: bxe: tag files to skip clang-format formatting
Branches
Unknown
Tags
Unknown